SSO Tokens
Create and verify Single Sign-On tokens for secure authentication
POST
/sso/createCreate SSO Token
Generate a new SSO token for the authenticated user
Response
Response (200 OK)
{
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
},
"message": "SSO token created successfully",
"success": true
}POST
/sso/verifyVerify SSO Token
Verify and validate an SSO token
Request Body
Request
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Response
Response (200 OK)
{
"data": {
"valid": true,
"userId": "c7ddc0c2-248b-462d-a0c3-d723621b2c75",
"email": "user@example.com",
"role": "Buyer"
},
"message": "Token verified successfully",
"success": true
}