Auth

Sign in with GitHub

Exchange a GitHub OAuth code for the user's profile and return a session token.

The browser sends users to GitHub's authorize URL, then posts the returned code (and the same redirect_uri) here. Store the returned token like the Google flow.

post/auth/github

Request

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

Request body

codestring required
redirect_uristring nullable

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.