Sign in with a magic link (the link in the email)
POST
/magic-link/verify
const url = 'http://localhost:4000/api/auth/magic-link/verify?token=example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'http://localhost:4000/api/auth/magic-link/verify?token=example'Signs in and sets the session cookie. Limited to 5 a minute per IP.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”token
required
string
Responses
Section titled “Responses”Signed in: redirects to the callbackURL. A bad, used or expired link: redirects to the errorCallbackURL (else the callbackURL, else /) with ?error=INVALID_TOKEN and sets no cookie.
Too many tries, or another error
Media typetext/html