auth v1

Authenticate player with SIWE

Changed on
post/iam/v1/siwe/authenticate

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/iam/v1/siwe/authenticate
  • Auth: HTTP bearer

Request body

signaturestring required

Signature of the EIP-712 message with the user's wallet.

messagestring required

The EIP-712 message to sign.

walletClientTypestring required

The wallet client of the user

connectorTypestring required

The connector type of the user

Example request

{
  "signature": "0x1773ca2e6514a795bc9549ffbdf73909b2cd0ba8eafe52a1751c3ee8d644458701debd502ee5b5a8fca24606eee42a2cc756a04958c7c189913184d46c48783e1b",
  "message": "demo.openfort.io wants you to sign in with your Ethereum account:",
  "walletClientType": "metamask",
  "connectorType": "injected"
}

Response

Ok

tokenstring required

JWT access token.

refreshTokenstring required

Refresh token.

Changes

    • info

      removed from the //////////// response property anyOf list for the response status

    • info

      removed the zkSync enum value from the //////////// response property for the response status

    • breaking

      the ///////////// response's property type changed from no type to object for status

    • info

      added the optional property //////////// to the response with the status

    • info

      added the optional property ////////////// to the response with the status

    • info

      added the optional property ////////////// to the response with the status

    • info

      added the required property ////////////// to the response with the status