import AuthorizationStore from '@hoist/oauth-connector/src/authorisation_store.js'
AuthorizationStore
Member Summary
Public Members | ||
public get |
the query params the user is currently showing
|
Method Summary
Public Methods | ||
public |
removes any value saved against the specified key permanently
|
|
public |
mark the current authorization flow as complete i.e.
|
|
public |
gets a value saved against the specified key
|
|
public |
redirect the user to the specified uri
the user is no longer present after this call so should only happen at the end of a flow
|
|
public |
sets and saves a value against the store
|
Public Methods
public delete(key: string): Promise source
removes any value saved against the specified key permanently
Params:
Name | Type | Attribute | Description |
key | string | the key the value is saved against |
public done(): undefined source
mark the current authorization flow as complete i.e. after having swapped all access tokens and request tokens
public get(key: string): object source
gets a value saved against the specified key
Params:
Name | Type | Attribute | Description |
key | string | the key the value is saved against |