{status: "OK", doesExist: boolean}
Sign in a user with email and password
{status: "OK"}
if successfull
Sign up a user with email and password
{status: "OK"}
if successfull
Generate a new state that will be sent to the thirs party provider
string
Returns the auth code from the current URL
The "code" query param from the current URL. Returns an empty string if no code exists
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
{status: "OK", url}
Get the URL that should be opened for third party authentication
URL string
Reads and returns the reset password token from the current URL
The "token" query parameter from the current location
Get the current login state from storage, this is also used when calling signInUp
State object from storage
Send an email to the user for password reset
{status: "OK"}
if successfull
Set the login state to storage
Submit a new password for the user
{status: "OK"}
if successfull
Sign up/Sign in the user, this method uses the login attempt information from storage
{status: OK, user, createdNewUser: boolean}
if succesful
Verify that the state recieved from the third party provider matches the one in storage
Generated using TypeDoc
Check if an email exists
STGeneralError if the API exposed by the backend SDKs returns
status: "GENERAL_ERROR"