protected function Storage::logAccessTime in OAuth2 Server 7
Track the time the token was accessed.
Parameters
\OAuth2ServerToken $token:
1 call to Storage::logAccessTime()
- Storage::getAccessToken in lib/
Drupal/ oauth2_server/ Storage.php
File
- lib/
Drupal/ oauth2_server/ Storage.php, line 126
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_serverCode
protected function logAccessTime(\OAuth2ServerToken $token) {
if ($token->last_access != REQUEST_TIME) {
$token->last_access = REQUEST_TIME;
$token
->save();
}
}