Auth
Verifies a wallet address and signature to generate a bearer token for authentication.
Authorizations
Body
walletAddressstringRequiredExample:
The wallet address of the user.
0x1234567890abcdef1234567890abcdef12345678
signaturestringRequiredExample:
The signature generated by the user's wallet for verification.
0xabcdef...
Responses
200
Bearer token generated successfully.
application/json
400
Invalid input or verification failed.
application/json
500
Internal server error.
application/json
post
POST /auth HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"signature": "0xabcdef..."
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}