Palbase Auth API · API
POST
/auth/magic-link/verifyRedeem magic link
Consumes a magic-link token and starts a session. The token is
single-use; the family-revocation rules from /auth/token/refresh
do not apply (no refresh chain), but the server records the
consumption to prevent replays.
Called by your app, with the publishable key.
Request body
auth_request_idstring · optionalThe pending /oauth/authorize request the sign-in completes. A link sent for another request is refused (400 `auth_request_invalid`).codestring · optionalThe six-digit code the email carries, typed in the tab that opened the request. A wrong one is 400 `invalid_code`. After five wrong codes the email's code no longer works (400 `code_max_attempts`); after twenty tried for the address in a day, no code does until the day is over (400 `code_limit_reached`). Either way the email's link still signs in from the browser that opened the request.tokenstring · optionalcurl
curl -X POST "https://<your-ref>.palbase.studio/auth/magic-link/verify" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "content-type: application/json" \
-d '{"auth_request_id":"string","code":"string","token":"string"}'Responses
200Signed in, or a second factor is required (`mfa_required`) — as a password sign-in answers
400Validation failed or required field missing
401Missing, invalid, or expired credentials
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation MagicLinkVerify of auth's contract.