Class: TokenTables

base.TokenTables()

Top level abstraction defining the relationship between token users, and token storage which may refer to some DB.

Provides access to token storage, making the semantics of token processing available to the authorization classes.

This abstraction just fixes a handle to some DB interface and provides methods that wrap the token storage, which must be provided to the constructor.

Constructor

new TokenTables()

Source:

Methods

generate_transition_token(prefix) → {string}

Parameters:
Name Type Description
prefix string
Source:
Returns:
  • a token for a transition object
Type
string

(async) tokenCurrent(token) → {boolean}

Parameters:
Name Type Description
token string
Source:
Returns:
Type
boolean

token_to_key(token) → {any|Promise}

Parameters:
Name Type Description
token string
Source:
Returns:
Type
any | Promise