You are here

public function AccessToken::__construct in Janrain Registration 8

Overrides Token::__construct

File

src/Authentication/AccessToken.php, line 20

Class

AccessToken
The access token.

Namespace

Drupal\janrain_capture\Authentication

Code

public function __construct(string $token, int $expiration, RefreshToken $refresh_token) {
  parent::__construct($token);
  $this
    ->setExpiration($expiration);
  $this->refreshToken = $refresh_token;
}