Issue a general token
Create a short-lived general token with client credentials before health checks, email delivery, registration, login, refresh, and forgot-password OTP requests.
LazyAuth API provides email and social login, PASETO token rotation, account verification, password recovery, and session controls with camelCase JSON responses.
{
"clientId": "base_auth_app",
"clientSecret": "base_auth_secret_789"
} {
"token": "lazycatlabs.<general-token>",
"tokenType": "Bearer"
}Authentication flow
Create a short-lived general token with client credentials before health checks, email delivery, registration, login, refresh, and forgot-password OTP requests.
Register with email/password or login with email, Google, or Apple. Successful auth returns access and refresh tokens.
Send the access token to user profile, session, logout, password, and account verification endpoints.
Use the refresh token plus device metadata to rotate the auth token pair without asking the user to login again.
Creates a general token from the configured client id and client secret.
/api/auth/general curl -X POST "https://lazyauth.lazycatlabs.com/api/auth/general" \
-H "Content-Type: application/json" \
-d '{
"clientId": "base_auth_app",
"clientSecret": "base_auth_secret_789"
}'{
"clientId": "base_auth_app",
"clientSecret": "base_auth_secret_789"
}{
"diagnostic": {
"status": "200 OK",
"message": "Success"
},
"data": {
"token": "lazycatlabs.<general-token>",
"tokenType": "Bearer"
}
}Use these public live-test credentials first, then copy the returned token into every General token request.
Response envelope
{
"diagnostic": {
"status": "200 OK",
"message": "Success"
},
"data": {}
}{
"diagnostic": {
"status": "400 Bad Request",
"message": "Validation error"
}
}