\OAuth2\StorageJwtAccessTokenInterface

No specific methods, but allows the library to check "instanceof" against interface rather than class

Summary

Methods
Constants
getAccessToken()
setAccessToken()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getAccessToken()

getAccessToken(string  $oauth_token) : array|null

Look up the supplied oauth_token from storage.

We need to retrieve access token data as we create and verify tokens.

Parameters

string $oauth_token
  • oauth_token to be check with.

Returns

array|null —
  • An associative array as below, and return NULL if the supplied oauth_token is invalid:

setAccessToken()

setAccessToken(string  $oauth_token, mixed  $client_id, mixed  $user_id, integer  $expires, string  $scope = null) 

Store the supplied access token values to storage.

We need to store access token data as we create and verify tokens.

Parameters

string $oauth_token
  • oauth_token to be stored.
mixed $client_id
  • client identifier to be stored.
mixed $user_id
  • user identifier to be stored.
integer $expires
  • expiration to be stored as a Unix timestamp.
string $scope
  • OPTIONAL Scopes to be stored in space-separated string.