auth

Sign in with GitHub

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

post/api/v0/auth/github

Request

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

Request body

codestring required

The authorization code returned by GitHub to the SPA.

redirect_uristring required

The redirect URI the SPA used on the authorize step; Assent must send the same value on the code exchange.

Example request

{
  "code": "abc123def456",
  "redirect_uri": "https://app.harmont.dev/auth/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.