Complete SIWE Login

post/siwe/login

Deprecated

The login endpoint returns the authentication token in exchange for the previously-issued challenge signed with the users wallet.

Request

Body application/json

  • messagestringrequired

    The EIP-4361 challenge

  • signaturestringrequired

    Signature obtained by signing the message with the wallet

  • createCardholderAccountboolean

    A flag to indicate whether a cardholder should be automatically created. Defaults to false.

Response

Successful login.

Body application/json

  • tokenstringrequired

    The authentication token

  • refreshTokenstring

    JWT that is used to request a new access token. Refresh tokens are valid for 30 days.

  • cardholderAccountIdstring

    The unique identifier of the cardholder.