Login With Google

The "Login With Google" authentication method allows users to securely log in using their Google credentials. This document provides details on how to integrate this authentication method

Overview

Endpoint

Request Body

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "clientId": "950982194245-aap02qd0c1dt29v6ho26l6pqte2m00q9.apps.googleusercontent.com"
}
  • token: Google authentication token.

  • clientId: Your Google API client ID.

Responses

Success (Code 200)

{
  "access": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires": "2020-05-12T16:18:04.793Z"
  },
  "refresh": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires": "2020-05-12T16:18:04.793Z"
  }
}
  • access: Access token for authentication.

  • expires: Expiry date and time for the access token.

  • refresh: Refresh token for obtaining a new access token.

Auth Failed (Code 400)

  • Media Type: application/json

  • Example Value: An error response indicating that authentication has failed.

Internal Server Error (Code 500)

  • Media Type: application/json

  • Example Value: An error response indicating an internal server error.

Usage

  1. Send a POST request to the provided endpoint with the required information.

  2. Handle the response accordingly based on success or failure.

Note: Ensure the Google authentication token (token) and client ID (clientId) are valid and up-to-date

Last updated