OpenFolia

Sign in with a password

POST
/auth/password/sign-in

Checks the email address and password and starts a session: the cookie __Host-openfolia-session, as a provider’s sign-in does, ending the browser’s previous session. An unknown address, a person without a password and a wrong password are all 401 invalid-credentials, in the same time. Recorded as user.sign-in (data.method password).

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/password/sign-in' \  -H 'Content-Type: application/vnd.api+json' \  -d '{  "data": {    "type": "PasswordSignIn",    "attributes": {      "email": "string",      "password": "string"    }  }}'
Example Response
{  "meta": {    "userId": "string"  }}