Auth

Requirement You are required to show empowered by RE:DREAMER if you used our protocol in any part of your product.

empowered white
empowered black

Domain

  • Mainnet: mainnet-api.redreamer.io

  • Testnet: testnet-api.redreamer.io

GET /api/v1/auth/nonce

Get a nonce by given address.

Request Parameters

  • [Required] address: the address of user.

Response

200

400, 500

Error Code

POST /api/v1/auth/login

Login to get JWT.

Request Body

  • signature: using ${address} ${nonce} to sign message.

Response

200

  • token: It will be expired after 1 hour.

  • refresh_token: If token is expired, you can use this to refresh without signature.

400, 500

Error Code

POST /api/v1/auth/refresh

Refresh JWT.

Request Body

Response

200

  • token: It will be expired after 1 hour.

  • refresh_token: If token is expired, you can use this to refresh without signature.

400, 500

Error Code

Information

Posted: Apr 20, 2022

Last updated