Class

ThirdPartyClient

ThirdPartyClient()

A class that handles communication with the Hanko API for the purposes of authenticating through a third party provider.
Constructor

# new ThirdPartyClient()

View Source lib/client/ThirdPartyClient.ts, line 13

Extends

Members

Methods

# async auth(provider, redirectTo) → {Promise.<void>}

Performs a request to the Hanko API that redirects to the given third party provider.
Parameters:
Name Type Description
provider string The name of the third party provider
redirectTo string The URL to redirect to after a successful third party authentication
See:

View Source lib/client/ThirdPartyClient.ts, line 85

Promise.<void>

# getError() → {ThirdPartyError|undefined}

Get a third party error from the current location's query params.

View Source lib/client/ThirdPartyClient.ts, line 91

The ThirdPartyError.
ThirdPartyError | undefined