Note that we have released support for OAuth2 login. The general steps involved are:
- Create an OAuthProvider (Google, Facebook, LinkedIn etc)
- Send the user to https://api.hypi.app/graphql/oauth2/authorization/<instance ID>-<OAuthProvider ID>
instance ID is the ID of your Hypi app instance and
OAuthProvider ID is the ID of the OAuthProvider created in step 1.
The user will be taken to the provider e.g. Google and when they’ve logged in, they will be taken to the URL you provided in the
hypiSuccessRedirectUri field of the
OAuthProvider created in step 1. There will be a
token query string parameter in the URL that has the token you can use to make API requests as this user.
See the documentation for full options at https://docs.hypi.app/references/oauth2-login