Class

TokenClient

TokenClient()

Client responsible for exchanging one time tokens for session JWTs.
Constructor

# new TokenClient()

View Source lib/client/TokenClient.ts, line 12

Extends

Members

Methods

# async validate() → {Promise.<void>}

Validate a one time token to retrieve a session JWT. Does nothing if the current window location does not contain a 'hanko_token' in the search query.

View Source lib/client/TokenClient.ts, line 50

https://docs.hanko.io/api/api/public#tag/Token/operation/token
Promise.<void>