Auth
Auth related API endpoints
Authenticates a user by verifying their BIP322 signature and creates a wallet with JWT tokens
Body
messagestringRequiredExample:
The message that was signed
Sign this message to authenticate with the systemsignaturestringRequiredExample:
The BIP322 signature of the message
base64-encoded-signatureaddressstringRequiredExample:
The Bitcoin address that signed the message
bc1p...publicKeystringRequiredExample:
The public key used for signing
02a1b2c3d4e5f6...Responses
200
User authenticated successfully
application/json
400
Invalid signature, invalid address, or authentication failed
application/json
post
/api/auth/authenticateBody
refreshTokenstringRequiredExample:
Refresh token to generate new access token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Responses
200
New access token generated successfully
No content
400
Invalid or expired refresh token
application/json
post
/api/auth/refresh-tokenNo content
Last updated