Authentication
Authentication, registration, and password flows
Exchanges a Google OAuth access token for an OmniShop user session.
Process
Validates the token via Google token-info endpoint
Confirms token audience matches configured client IDs
Fetches user info and completes social login
Redirects
Success: redirects to the basket or provided
nextparameterFailure: returns HTTP 400
Body
JSON payload forwarded to Google token verifier
access_tokenstringRequiredExample:
OAuth access token issued by Google
ya29.A0AVA9y1ExampleTokenResponses
302
Login succeeded, user redirected
400
Token invalid or Google verification failed
application/json
post
/google/login/token/POST /google/login/token/ HTTP/1.1
Host: sandbox.akinon.com
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"access_token": "ya29.A0AVA9y1ExampleToken"
}No content
Last updated
Was this helpful?

