GET /api/auth/verify/consume?token=… — consume a verification link, flip `email_verified`, then redirect to the login page with a status flag. Always redirects, so the HTTP status never leaks whether the token was valid.
GET
/api/auth/verify/consume
const url = 'https://example.com/api/auth/verify/consume?token=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/auth/verify/consume?token=example'GET /api/auth/verify/consume?token=… — consume a verification link, flip
email_verified, then redirect to the login page with a status flag. Always
redirects, so the HTTP status never leaks whether the token was valid.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”token
required
string
Email verification token
Responses
Section titled “Responses”Redirect to the login page with verification status