Learn how to authenticate with Rise using Sign-In with Ethereum (SIWE)
Request SIWE Message
/v2/auth/siwe
endpoint with the user’s wallet address and RiseID to get a message to sign.User Signs Message
Verify Signature
/v2/auth/verify
to obtain a JWT token.Use JWT Token
Nonce:
line).
Important: The nonce is automatically generated by the server and included in the SIWE message. You need to extract this nonce to use in Step 3.
Example (JavaScript/ethers - Node.js):
Authorization
header for all subsequent API calls:
HTTP Status Code | Description | Solution |
---|---|---|
400 | Bad Request - Missing or invalid parameters | Check that wallet address and RiseID are provided and valid |
401 | Unauthorized - Invalid signature or expired nonce | Re-authenticate with a new SIWE message |
403 | Forbidden - User lacks permission for the RiseID | Verify the wallet has proper permissions for the specified RiseID |
404 | Not Found - RiseID doesn’t exist | Verify the RiseID exists in the system |
500 | Internal Server Error | Retry the request or contact support |
ethers.Wallet()
. However, ensure the private key is stored securely in environment variables and never committed to version control.