Authenticate
async authenticate()
async authenticate()
walletAddress:string
- is the address of the usersignature:string
- is signMessage + authChallengeuserRef:string
- will be equal to "1"
const response = await this.newBorrowingService.authUser({
walletAddress,
signature,
userRef: "1"
})
This is an example of the successful response
object of this function:
{
"status": "Success",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJldGhBZGRyZXNzIjoiMHg3NjgwMjA4N2Q5OTA3ZTBjOTk4Yzk1NTU5ZWRkZTIzMDkwMGFmNzYyIiwidXNlcl9pZCI6IjBlOGU4MjE5LWI3NzUtNGU2Ni1iNDE2LWM1NmMyYmM4YjE3NSIsInJvbGUiOiJBdXRoZW50aWNhdGVkIiwiaWF0IjoxNjQzNjM0NDUxLCJleHAiOjE2NDM2NjQ0NTF9.X_w2Jhb0_aoLXwLAdm91M7cZF_7xaaskaY-2Z5K-N7I"
}
}
Last updated