auth

Sign in with Google

Exchanges a Google authorization code for a Harmont session token, creating the user and their personal org on first sign-in.

post/api/v0/auth/google

Request

  • Base URL: https://api.harmont.dev
  • URL: https://api.harmont.dev/api/v0/auth/google
  • Auth: none required

Request body

codestring required

The authorization code returned by Google to the SPA.

redirect_uristring required

The redirect URI the SPA used; must match the OAuth client config.

Example request

{
  "code": "4/0Afg...",
  "redirect_uri": "https://app.harmont.dev/auth/google/callback"
}

Response

Session token + user

tokenstring required

The raw session bearer token. Send it as Authorization: Bearer <token>.

Changes

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