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
chevron-right
302

Login succeeded, user redirected

post
/google/login/token/

No content

Last updated

Was this helpful?