OpenFolia

Sign in with the link from a code’s email

POST
/auth/email-code/link

Signs in with the token of the link in a code’s email (<editor>/sign-in-code#<token>; the token goes in the body, never in an address) and sets the session cookie. The link and its code work once, together. Recorded as user.sign-in (data.method email-code, via link).

Request Body

application/vnd.api+json
  1. body
data*

Response Body

application/vnd.api+json
  1. response
meta*
Example Request
curl -X POST 'http://localhost:3000/auth/email-code/link' \  -H 'Content-Type: application/vnd.api+json' \  -d '{  "data": {    "type": "EmailCodeLink",    "attributes": {      "token": "string"    }  }}'
Example Response
{  "meta": {    "userId": "string"  }}