Auth

Sign in with Google

Verify a Google One-Tap ID token, create or update the user account, and return a session token.

The browser should send the credential string returned by google.accounts.id.initialize({ callback }) after the user grants consent. Store the returned token in localStorage and include it as Authorization: Bearer <token> on subsequent authenticated requests.

post/auth/google

Request

  • Base URL: https://foresea.ink (the document declares no server; this is the origin it was published from)
  • URL: https://foresea.ink/auth/google
  • Auth: none declared

Request body

credentialstring required

Response

Successful Response

tokenstring required
user_idstring required
emailstring required
namestring required
picturestring required

Changes

No recorded changes to this operation across all 1 revision of this API.