Custom Identity Flows
Use these endpoints when you do not use hosted UI for full identity lifecycle UX.
Endpoints
POST /auth/registerPOST /auth/verify-emailPOST /auth/forgot-passwordPOST /auth/reset-passwordPOST /auth/exchange
Flow Guard Requirement
Some endpoints are protected by auth-flow context and require:
- Header:
x-auth-flow-id
If missing or invalid, API returns 401.
Operational Notes
- Verification and reset codes are short-lived and single-use.
- Register and forgot-password are anti-enumeration oriented.
- Password reset and verify email return an auth
codethat can be exchanged again throughPOST /auth/authorize.
Recommended Integration Pattern
- Create/start auth flow in your frontend journey.
- Pass
x-auth-flow-idon relevant custom auth endpoints. - On success code return, complete session with
POST /auth/authorize.
Apple Relay Notice (Beta)
If your application links existing users by email, review the Apple relay guidance in Hosted Login Flow before enabling Apple-based linking paths.
In Beta, relay emails can prevent deterministic matching. A definitive solution will be included in v1.
Last updated on