Skip to main content
Create a session using username/email and password
curl --request POST \
  --url https://api.acornops.dev/api/v1/auth/password/login \
  --header 'Content-Type: application/json' \
  --header 'x-csrf-token: <x-csrf-token>' \
  --data '
{
  "identifier": "dev",
  "password": "devpass"
}
'
{
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "displayName": "<string>",
    "emailVerified": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "verificationRequired": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-csrf-token
string
required

CSRF token returned by /api/v1/auth/csrf and mirrored in the CSRF cookie.

Body

application/json
identifier
string
required
Example:

"dev"

password
string<password>
required
Example:

"devpass"

Response

Session cookie set and user returned.

user
object
required
status
enum<string>
Available options:
authenticated,
verification_required
verificationRequired
boolean