Extends
Methods
-
Authorizes the given waiting code.
Name Type Description code
string The code to authorize.
-
Awaits the authorization of a given code before a token will be issued and returns a promise object for the token.
Name Type Description code
string The authorization code.
user
string The user name associated with the new token.
sourceAddress
string The source address for which the new token will be valid.
Returns:
Type Description Promise.<string> A promise for the new token. -
Issues a new authentication token valid for the given user and source address.
Name Type Description user
string The user name associated with the new token.
sourceAddress
string The source address for which the new token will be valid.
Returns:
Type Description string The new token. -
Revokes the given token. It will no longer be valid for authentication.
Name Type Description token
string The token to revoke.