OpenFolia

Set a password with a one-time link

POST
/auth/password/set

Sets the person’s password through their invite or reset link and signs them in (the session cookie). The link works once. Every other session of the person ends. Recorded as user.password-set (data.via invite or reset) and user.sign-in. A password the rules refuse leaves the link working.

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