The state to check.
True if the state is valid, otherwise false.
Generates a new state for GitHub, then adds it to the current states. This state is a a string of 64 cryptographically random bytes.
The new state.
Gets the home URL for the github callback.
The home URL.
Step two of the GitHub OAuth process: exchanging the temporary code for an access token. This function first asks an access token, then checks if a a user exists in our system and if not, creates one.
Step one of the GitHub OAuth process: getting the identity of the user.
This calls GitHub's login, then asks Github to redirect the user to
/github/challenge
on our server. This function only generates a new state,
makes it valid and then redirects.
Callback for the actual signup and/or login. Uses the provided GitHub data to access our underlying database. If the user doesn't exist, their account is created. If the user exists, we check if we need to update their name and/or GitHub handle.
Checks if we need to update a GitHub user's name and/or handle.
Checks if all required fields are available. We need (at least) a login
,
name
and id
in the request.
Generated using TypeDoc
Checks if a state exists, then removes that state from the set of valid states.