Authentication
Authentication related API endpoints:
Every call the to API after this signin should present the JWT Bearer token for authenticated access. Upon request we can change the timeout to greater than 24 hours, or setup an addtional dedicated API for an agreed upon development and maintenance cost
Body
addressstringOptional
msgstringOptional
namestringOptional
noncestringOptional
sigstringOptional
Responses
200
OK
application/json
Responseinteger
post
/signinPOST /signin HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"address": "text",
"msg": "text",
"name": "text",
"nonce": "text",
"sig": "text"
}200
OK
1As part of the login process, we need a user to sign a nonce genrated from the API, to prove the user in fact the owner of the wallet they are siging in from. JWT currently set to 24 hour validity (could change this upon request)
Path parameters
addressstringRequired
wallet address to get nonce to sign
Responses
200
OK
application/json
Responseany
get
/users/{address}/nonceGET /users/{address}/nonce HTTP/1.1
Host:
Accept: */*
200
OK
No content
Last updated