accessToken
Summary
Provides functions to interface oauth tokens and openveo Web Service.
Methods
checkTTL
Syntax
Summary
Checks if token is valid and not expired.
Parameters:
-
token
ObjectThe access token
Returns:
Boolean:
true if the token is valid, false otherwise
create
Syntax
create
(
static
async
-
userId
-
clientId
-
scopes
-
ttl
-
callback
Summary
Creates access token and saves it in database.
It will previously remove all tokens associated to the client.
fetchByToken
Syntax
fetchByToken
(
static
async
-
token
-
callback
Summary
Fetches accessToken object by token.