mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-16 23:26:10 +00:00
Compare commits
1 Commits
1.0.0-rc.1
...
1.0.0-rc.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
63e3f0a4a2
|
@@ -46,6 +46,20 @@ trait ManagesUsers
|
|||||||
return $this->post('v1/users', $attributes);
|
return $this->post('v1/users', $attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Refreshes the access token using the refresh token.
|
||||||
|
*/
|
||||||
|
public function refreshToken(string $storedRefreshToken, string $scope = ''): Result
|
||||||
|
{
|
||||||
|
return $this->post('../oauth/token', [
|
||||||
|
'grant_type' => 'refresh_token',
|
||||||
|
'refresh_token' => $storedRefreshToken,
|
||||||
|
'client_id' => $this->clientId,
|
||||||
|
'client_secret' => $this->clientSecret,
|
||||||
|
'scope' => $scope,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given email exists.
|
* Checks if the given email exists.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user