Skip to content

Magic link login

Method · RoutePurposeSource
POST /magic-link/sendEmail a login linkAuthEndpoints.cs:34
POST /magic-link/verifyVerify the token → session (web origin gets an HttpOnly cookie; SDK keeps the body token via CookieAuthWriter):42

End-user (your app) — /api/public/apps/{applicationKey}/auth

Section titled “End-user (your app) — /api/public/apps/{applicationKey}/auth”
Method · RouteSource
POST /magic-link/sendPublicEndpoints.cs:461
POST /magic-link/verify:563

The end-user flow auto-activates the user and validates the post-login redirect against the application’s callback allowlist before returning.

FieldMeaning
emailWhere the link is sent.
redirectUrlWhere the link lands — the hosted portal’s /login/(applicationKey)/verify route. Must be the portal itself or one of the app’s Callback URLs.
postSignInRedirectUrlWhere the user goes after the link signs them in (the page they came from). Validated against the app’s Callback URLs (exact match or same origin) and carried inside the link as redirect_url, so the round-trip works from any device or browser profile. Unregistered values are dropped, never rewritten.
turnstileTokenCloudflare Turnstile token when bot protection is on.