Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/content/docs/reference/auth-api-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ map of the auth server surface as it exists in the source repo today.
| Group | Routes | Purpose |
| -------------- | ---------------------------------- | ---------------------------------------------------- |
| Authentication | `/login`, `/logout`, `/refresh` | Login entry, logout, access refresh |
| Registration | `/registration/register` | New-user registration |
| Registration | `/registration/*` | New-user registration and phone enrollment |
| OTP | `/otp/*` | Email and phone OTP generation and verification |
| WebAuthn | `/webauthn/*` | Passkey registration and login |
| Magic Links | `/magic-link*` | Magic link request, polling, verification |
Expand Down Expand Up @@ -60,9 +60,14 @@ map of the auth server surface as it exists in the source repo today.

## Registration

| Method | Path | Purpose |
| ------ | ------------------------ | ------------------- |
| `POST` | `/registration/register` | Register a new user |
| Method | Path | Purpose |
| ------ | ---------------------------- | ------------------------------------------------- |
| `POST` | `/registration/register` | Register a new user |
| `POST` | `/registration/phone` | Add a phone to the signed-in user and send an OTP |
| `POST` | `/registration/phone/verify` | Verify that phone with the OTP |

`/registration/phone` and `/registration/phone/verify` require an access token. The OTP is sent
only when the phone is new or not yet verified.

---

Expand Down
Loading