5use Ubiquity\cache\system\ArrayCache;
48 return $this->
tokens [$key]??
false;
96 public function remove($key) {
116 if (!
isset ( self::$cache )) {
117 self::$cache =
new ArrayCache ( $folder .
'rest/tokens',
'.rest' );
119 if (self::$cache->exists ( $key )) {
Manage the token api for the Rest part.
getFromCache($folder, $key='_apiTokens')
__construct($length=10, $duration=3600, $tokens=[])
storeToCache($key='_apiTokens')
refreshToken(string $key)
Refresh the token using an existing one.