Authentication
Verify User (Redirect)
Verify email/phone confirmation via GET redirect (used in email links)
GET
Verify email or phone confirmation via GET redirect. This endpoint is typically used in email verification links and redirects users to your application with authentication tokens.
The redirect URL will include authentication tokens in the URL fragment:
This endpoint does not require authentication and is designed to be called from email links.
Query Parameters
The type of verification being performed.Options:
signup- Email/phone confirmation after registrationrecovery- Password recovery verificationmagiclink- Magic link authenticationinvite- User invitation acceptanceemail_change- Email change confirmation
The verification token sent via email or SMS.
URL to redirect to after successful verification. If not provided, uses default redirect URL.
Response
This endpoint returns a redirect response rather than JSON data.Successful Verification
| Parameter | Description |
|---|---|
access_token | JWT access token for API authentication |
refresh_token | Refresh token for obtaining new access tokens |
expires_in | Token expiration time in seconds |
token_type | Token type (always “bearer”) |
Failed Verification
Verification Types
Signup Verification
Confirms email or phone after user registration:Password Recovery
Verifies password reset requests:Magic Link
Passwordless authentication via email:Email Change
Confirms email address changes:User Invitation
Accepts user invitations:Handling Redirects in Your Application
Frontend Token Extraction
React Hook for Token Handling
Security Considerations
- Token Expiration: Verification tokens have limited lifetime (typically 24 hours)
- Single Use: Tokens can only be used once for security
- HTTPS Required: Always use HTTPS in production to protect tokens
- URL Fragments: Tokens are passed in URL fragments to prevent server-side logging
Error Handling
Handle verification errors gracefully in your application:Testing Verification Links
Development Testing
Integration Testing
Related Endpoints
Verify (JSON)
POST endpoint for JSON verification responses
Resend Confirmation
Resend verification emails or SMS
User Signup
Create new user accounts
Magic Links
Passwordless authentication