Samdock

Authentifizierung

Authentifizierung über JWT-Tokens verwalten — Anmeldung, Token-Aktualisierung und Token-Widerruf.

Anmelden

POST
/login

Request Body

application/json

email*string
password*string

Response Body

application/json

curl -X POST "https://auth.samdock.app/login" \  -H "Content-Type: application/json" \  -d '{    "email": "string",    "password": "string"  }'
{
  "accessToken": "string",
  "refreshToken": "string"
}

Token aktualisieren

POST
/token/refresh

Request Body

application/json

refreshToken*string
accessToken*string

Response Body

application/json

curl -X POST "https://auth.samdock.app/token/refresh" \  -H "Content-Type: application/json" \  -d '{    "refreshToken": "string",    "accessToken": "string"  }'
{
  "accessToken": "string",
  "refreshToken": "string"
}

Token widerrufen

POST
/token/revoke

Request Body

application/json

refreshToken*string
accessToken*string

Response Body

curl -X POST "https://auth.samdock.app/token/revoke" \  -H "Content-Type: application/json" \  -d '{    "refreshToken": "string",    "accessToken": "string"  }'
Empty