Complete SIWE Login
POST/siwe/login
Deprecated
This endpoint is deprecated, please use Complete Login instead.
The login endpoint returns the authentication token in exchange for the previously-issued challenge signed with the users wallet.
Request
- application/json
Body
required
message stringrequired
The EIP-4361 challenge
signature stringrequired
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
successful login
- application/json
- Schema
- Example (from schema)
Schema
token stringrequired
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"
}
Loading...