v1 demo
Authenticate with Google OAuth
Authenticate user with Google OAuth and return JWT token.
This endpoint:
- Verifies Google OAuth credential
- Creates new user if doesn't exist or links existing account
- Generates JWT authentication token
- Sends welcome email for new Google users
- Returns user information and access token
**Authentication**: No authentication required
post/v1/demo/auth/google
Request body
Example request
{
"credential": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ij..."
}Response
Successful Response
Example response
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"expires_in": 86400,
"token_type": "bearer",
"user": {
"email": "user@example.com",
"name": "John Doe",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
}