Authentication

Authentication, registration, and password flows

Complete Google login with an access token

post

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 next parameter

  • Failure: returns HTTP 400

Body

JSON payload forwarded to Google token verifier

access_tokenstringRequired

OAuth access token issued by Google

Example: ya29.A0AVA9y1ExampleToken
Responses
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?