Fumadocs

Get a token

POST
/auth/token

Yeah, this is the boring security stuff. Just get your super secret token and move on.

Request Body

Body for credentials to authenticate a user

TypeScript Definitions

Use the request body type in TypeScript.

Credentials to authenticate a user

Response Body

curl -X POST "https://example.com/auth/token" \  -H "Content-Type: application/json" \  -d '{    "email": "marc@scalar.com",    "password": "i-love-scalar"  }'
{  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}