public function Token::setExpiration in Janrain Registration 8
1 call to Token::setExpiration()
- AccessToken::__construct in src/
Authentication/ AccessToken.php
File
- src/
Authentication/ Token.php, line 55
Class
- Token
- The token.
Namespace
Drupal\janrain_capture\AuthenticationCode
public function setExpiration(int $expiration) : void {
$this->expiresIn = $expiration;
$this->expiration = new \DateTime();
$this->expiration
->setTimestamp(\Drupal::time()
->getRequestTime() + $expiration);
}