Skip to main content
POST
/
auth
/
oauth
/
google
Applicant Google OAuth login
curl --request POST \
  --url https://sgja-api.vohoangphuc.com/auth/oauth/google \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "codeVerifier": "<string>",
  "redirectUri": "<string>"
}
'
{
  "accessToken": "<string>",
  "refreshToken": "<string>",
  "tokenType": "Bearer",
  "expiresIn": 123
}

Body

application/json
code
string
required

Authorization code from Google

codeVerifier
string
required

PKCE code verifier

redirectUri
string
required

Response

200 - application/json

Authentication successful

accessToken
string
refreshToken
string
tokenType
string
default:Bearer
expiresIn
integer<int64>

Token expiry in seconds