Login
The login endpoint returns the authentication token in exchange for the previously-issued challenge signed with the users wallet.
- application/json
Request Body required
- message string required
The EIP-4361 challenge
- signature string required
Signature obtained by signing the message with the wallet
- createCardholderAccount boolean
A flag to indicate whether a cardholder should be automatically created. Defaults to
false
.
Responses
- 200
- 400
successful login
- application/json
- Schema
- Example (from schema)
Schema
- token string required
The authentication token
- refreshToken string
JWT that is used to request a new access token. Refresh tokens are valid for 30 days.
- cardholderAccountId string
The unique identifier of the cardholder.
{
"token": "eyJhbGciOiJSUzI1NiIsI...",
"refreshToken": "eyJhbGciOiJSUzI1NiIsI...",
"cardholderAccountId": "29097f50d221858223a17633e36716f9"
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
- statusCode integer required
- statusName string required
- errorCode string required
- errors string[]
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "BAD_REQUEST",
"errors": [
"Expected string, received number"
]
}
Loading...