Documentation on how to log users into the Heat Platform
Users can be logged into the Heat Platform through a custom authentication flow that proves ownership of a wallet address
Current Supported Chains
Chain ID
Chain Name
80001
Polygon Mumbai
Login Flow
Note: This login flow assumes you can interface with a wallet to sign messages
There are two methods for logging a user into the Heat Platform. First is to use a version of the Amazon Amplify library to login. The second is to send a few manual requests in lieu of using the Amazon provided libraries
Manual Steps
Note: Responses will be returned in base64 encoding
Username is in the format {chainID}-{walletAddress} with chainID being the id of the chain you wish to login with and walletAddress being the 0x prefixed wallet address
{
"ChallengeName": "...",
"ChallengeParameters": {
"USERNAME": "{chainID}-{walletAddress}",
"message": "I am signing my one-time nonce: ####",
},
"Session": "...", <- Will need this for challenge response!
}
{
"ChallengeName": "...",
"ClientId":"75k724tms8ge8aqg5sdmhm7s1n",
"ChallengeResponses": {
"USERNAME": "{chainID}-{walletAddress}",
"ANSWER": "0x...",
},
"Session": "...", <- Same as returned above
}