Token

Models. Token

new Token()

Source:

Methods

(async, static) compare(rawToken, hash) → {String}

Source:
Parameters:
Name Type Description
rawToken String
hash String
Returns:
Type
String

(async, static) encrypt(rawToken) → {String}

Source:
Parameters:
Name Type Description
rawToken String
Returns:
Type
String

(async, static) forgeAccessToken() → {Object}

Source:
Returns:
Type
Object

(async, static) forgeRefreshTokenFor() → {Object}

Source:
Returns:
Type
Object

toOutputJSON() → {Object}

Source:
Returns:
Type
Object