Verify an emailed sign-in link
Open the URL from the email in a browser. Establishes a session and redirects to callbackURL (or newUserCallbackURL for a new member). Invalid, expired, and reused links redirect with error=INVALID_TOKEN. Callback origins are checked by Better Auth. Without callbackURL, returns the session as JSON.
get/api/auth/magic-link/verify
Request
- Base URLhttps://www.toma.com
- URLhttps://www.toma.com/api/auth/magic-link/verify
- Authnone required
Query parameters
tokenstring required
callbackURLstring
newUserCallbackURLstring
errorCallbackURLstring
Response
The session when no callbackURL is supplied.
object required
Changes
No recorded changes to this operation across all 1 revision of this API.