Any OAuth provider needs to implement this interface which has provider specific handlers for different methods to perform authentication, get access tokens, refresh tokens and perform sign out.
export interface OAuthHandlers
|handler(req)||Handle the redirect from the auth provider when the user has signed in.|
|logout()?||(Optional) (Optional) Sign out of the auth provider.|
|refresh(req)?||(Optional) (Optional) Given a refresh token and scope fetches a new access token from the auth provider.|
|start(req)||Initiate a sign in request with an auth provider.|