Sep45Token Response
Response from submitting signed authorization entries.
When the client submits properly signed authorization entries to the authentication server, the server verifies the signatures and returns either a JWT token on success or an error message on failure.
The JWT token can be used to authenticate requests to SEP-6 (Deposit/Withdrawal), SEP-12 (KYC), SEP-24 (Hosted Deposit/Withdrawal), SEP-31 (Cross-Border Payments), and other Stellar services that require authentication.
Example success response JSON:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Example error response JSON:
{
"error": "Invalid authorization entries"
}Server-side verification steps:
Decodes authorization entries from base64 XDR
Validates entry structure and arguments
Simulates the transaction to verify contract acceptance
Verifies client signature(s) are valid
Generates and signs JWT token
Returns token in response
See also:
Sep45AuthToken for parsing the JWT token