v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
auth

Endpoint for callback from frontend with token gotten from google oauth provider

post/auth/google

Request body

id_tokenstring required

Response

user sign in succesfully

statusstring
messagestring
status_codeinteger

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"
    }
  }
}