auth
Endpoint for callback from frontend with token gotten from google oauth provider
post/auth/google
Request body
Response
user sign in succesfully
Example response
{
"status": "success",
"message": "user sign in successfully",
"status_code": 200,
"data": {
"access_token": "access_token",
"user": {
"id": "userId_here",
"email": "user@example.com",
"fullname": "John Doe",
"avatar_url": "http://example.com/avatar.jpg",
"expires_in": "3600",
"role": "user"
}
}
}