Sign-in links
Verifies the sign-in link in the sign-in code email (links are created with the code, not requested on their own).
GET
Verify magic link
token?stringVerification token
callbackURL?stringURL to redirect after magic link verification, if not provided the user will be redirected to the root URL. Eg: "/dashboard"
errorCallbackURL?stringURL to redirect after error.
newUserCallbackURL?stringURL to redirect after new user signup. Only used if the user is registering for the first time.
Success
application/json- response
session?user?curl -X GET 'https://auth.example.com/api/auth/magic-link/verify'Example Response
{ "session": { "id": "string", "expiresAt": "2019-08-24T14:15:22Z", "token": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "ipAddress": "string", "userAgent": "string", "userId": "string", "impersonatedBy": "string", "activeOrganizationId": "string", "activeTeamId": "string", "country": "string" }, "user": { "id": "string", "name": "string", "email": "string", "emailVerified": false, "image": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "role": "string", "banned": false, "banReason": "string", "banExpires": "2019-08-24T14:15:22Z", "username": "string", "displayUsername": "string", "twoFactorEnabled": false, "phoneNumber": "string", "phoneNumberVerified": true }}