Extends
Members
Methods
# auth(email, redirectTo) → {void}
Performs a request to the Hanko API that redirects to the given
third party provider.
Parameters:
Name | Type | Description |
---|---|---|
email |
string
|
E-Mail address of the user |
redirectTo |
string
|
The URL to redirect to after a successful third party authentication |
- See:
void
# getError() → {ThirdPartyError|undefined}
Get a third party error from the current location's query params.
The ThirdPartyError.
ThirdPartyError
|
undefined
# async hasProvider(email) → {Promise.<boolean>}
Performs a request to the Hanko API to check if there is a provider for the users e-mail domain
Parameters:
Name | Type | Description |
---|---|---|
email |
string
|
E-Mail address of the user to login |
Promise.<boolean>