Repository navigation
feat(auth): add phone number methods to createNeonAuth #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e340431
1a18d2d
795a4e7
d65e372
1b41413
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,7 @@ export const API_ENDPOINTS = { | |
| social: { path: 'sign-in/social', method: 'POST' }, | ||
| emailOtp: { path: 'sign-in/email-otp', method: 'POST' }, | ||
| magicLink: { path: 'sign-in/magic-link', method: 'POST' }, | ||
| phoneNumber: { path: 'sign-in/phone-number', method: 'POST' }, | ||
| }, | ||
| signUp: { | ||
| email: { path: 'sign-up/email', method: 'POST' }, | ||
|
|
@@ -149,6 +150,14 @@ export const API_ENDPOINTS = { | |
| resetPassword: { path: 'email-otp/reset-password', method: 'POST' }, | ||
| }, | ||
|
|
||
| // Phone Number | ||
|
Shridhad marked this conversation as resolved.
|
||
| phoneNumber: { | ||
| sendOtp: { path: 'phone-number/send-otp', method: 'POST' }, | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🖍️ redline (automated reviewer) [question]
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. better-auth 1.7.6 rate-limits by client IP plus path ( |
||
| verify: { path: 'phone-number/verify', method: 'POST' }, | ||
| requestPasswordReset: { path: 'phone-number/request-password-reset', method: 'POST' }, | ||
| resetPassword: { path: 'phone-number/reset-password', method: 'POST' }, | ||
|
Shridhad marked this conversation as resolved.
Shridhad marked this conversation as resolved.
|
||
| }, | ||
|
|
||
| // Magic Link | ||
| magicLink: { | ||
| verify: { path: 'magic-link/verify', method: 'GET' }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.