Hatch

Trade the one-time code from a single sign-on for a session. The answer’s set-auth-token header holds the token.

On this page

POST/api/sso/exchange

Request body

  • code string: At most 200 characters
  • verifier string: At most 200 characters

Response

200: It worked

  • user User (required)

    • id string (required): At most 300 characters
    • email string (required): At most 300 characters
    • name string (required): At most 300 characters
    • image string | null
    • twoStep boolean: Sign-in asks for a code from an authenticator app too

Other answers:

  • 4XX: Refused, with a message to show the person