string
Returns the error from the current URL
The "error" query param from the current URL. Returns undefined if no error exists
Returns the auth state from the current URL
The "state" query param from the current URL. Returns an empty string if no state exists
Get the URL to be used by the third party provider for redirecting after the auth flow. Also returns PKCE Code Verifier if using PKCE.
{status: "OK", url, pkceCodeVerifier?}
Get the URL that should be opened for third party authentication
URL string
Get the current login state from storage, this is also used when calling signInUp
State object from storage
Set the login state to storage
Sign up/Sign in the user, this method uses the login attempt information from storage
{status: OK, user, createdNewRecipeUser: boolean}
if succesful
Verify that the state recieved from the third party provider matches the one in storage
Generated using TypeDoc
Generate a new state that will be sent to the third party provider