mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлен роут и логика для обновления access_token по refresh_token'у
This commit is contained in:
@@ -38,4 +38,11 @@ class AuthenticationRoute extends BasePage {
|
||||
]);
|
||||
}
|
||||
|
||||
public function refreshToken($refreshToken = null) {
|
||||
$this->route = ['authentication/refresh-token'];
|
||||
$this->actor->sendPOST($this->getUrl(), [
|
||||
'refresh_token' => $refreshToken,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user