Verifies a user's signature and returns a JWT token
Headers
Request body
Example request
{
"identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1"
}Response
User authenticated successfully
Example response
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmIwNmY3NjU1ODA0YjE2MjllODQxNTkiLCJpZGVudGl0eUV0aEFkZHJlc3MiOiIweGEzMmFFQ2RhNzUyY0Y0RUY4OTk1NmU4M2Q2MEMwNDgzNWQ0RkE4NjciLCJyb2xlcyI6WyJVU0VSIiwiQURNSU4iXSwiaXNSZWZyZXNoIjpmYWxzZSwiaWF0IjoxNjcwMzE1OTk4LCJleHAiOjE2NzAzMTk1OTh9.qKvucMZLVbz_1TnsxaSqYX1i5CSpver6fFJTf3pABVA",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmIwNmY3NjU1ODA0YjE2MjllODQxNTkiLCJpZGVudGl0eUV0aEFkZHJlc3MiOiIweGEzMmFFQ2RhNzUyY0Y0RUY4OTk1NmU4M2Q2MEMwNDgzNWQ0RkE4NjciLCJyb2xlcyI6WyJVU0VSIiwiQURNSU4iXSwiaXNSZWZyZXNoIjpmYWxzZSwiaWF0IjoxNjcwMzE1OTk4LCJleHAiOjE2NzAzMTk1OTh9.qKvucMZLVbz_1TnsxaSqYX1i5CSpver6fFJTf3pABVA",
"identityEthAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"tokenType": "bearer",
"user": {
"_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
"identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"username": "darth",
"accounts": [
{
"_id": "63b428f7d9ca4f6ff5370d05",
"user": {
"_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
"identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"username": "darth"
},
"accountId": "098098098098098",
"name": "darth#6755",
"avatarId": "098098098087097",
"platform": "DISCORD"
}
]
}
}Changes
Changed in 16 of the 50 revisions of this API.98
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 56 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
user/allOf[User]/accounts/items/nameresponse property's minLength was decreased from4to2for the response status201response-property-min-length-decreased
- ▲
- ○
added the required property
refreshTokento the response with the201statusresponse-required-property-added
- ○
- ○
added the required property
userto the response with the201statusresponse-required-property-added
- ○
- ▲
removed the required property
userfrom the response with the201statusresponse-required-property-removed
- ▲
- ○
added the required property
userto the response with the201statusresponse-required-property-added
- ○
- ▲
removed the required property
userfrom the response with the201statusresponse-required-property-removed
- ▲
- ○
added the required property
userto the response with the201statusresponse-required-property-added
- ○
- ○
endpoint added
endpoint-added
- ○