/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Auth/Implement/AccessTokenAuthentication.php
28 строк
569 B
Илья
Create private refresh ratio token parametr
22 авг 2023, 12:02
22 авг 2023, 12:02
5159a4d
Код
Авторство
О чём код?
<?php namespace YdbPlatform\Ydb\Auth\Implement; use YdbPlatform\Ydb\Auth\TokenInfo; class AccessTokenAuthentication extends \YdbPlatform\Ydb\Auth\Auth { /** * @var string */ protected $access_token; public function __construct(string $access_token) { $this->access_token = $access_token; } public function getTokenInfo(): TokenInfo { return new TokenInfo($this->access_token, time()+24*60*60, $this->refreshTokenRatio); } public function getName(): string { return 'Access token'; } }