Auth

Auth related API endpoints

Authenticate user with BIP322 signature verification

post

Authenticates a user by verifying their BIP322 signature and creates a wallet with JWT tokens

Body
messagestringRequired

The message that was signed

Example: Sign this message to authenticate with the system
signaturestringRequired

The BIP322 signature of the message

Example: base64-encoded-signature
addressstringRequired

The Bitcoin address that signed the message

Example: bc1p...
publicKeystringRequired

The public key used for signing

Example: 02a1b2c3d4e5f6...
Responses
200

User authenticated successfully

application/json
post
/api/auth/authenticate

Refresh access token using refresh token

post
Body
refreshTokenstringRequired

Refresh token to generate new access token

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Responses
200

New access token generated successfully

No content

post
/api/auth/refresh-token

No content

Last updated