public function Oauth2Client::setAccessToken in Auth0 Single Sign On 8.2
Sets and persists $access_token.
Parameters
string $access_token:
Return value
1 call to Oauth2Client::setAccessToken()
- Oauth2Client::exchangeCode in vendor/
auth0/ auth0-php/ src/ API/ Oauth2Client.php - Exchanges the code from the URI parameters for an access token, id token and user info
File
- vendor/
auth0/ auth0-php/ src/ API/ Oauth2Client.php, line 401
Class
- Oauth2Client
- This class provides access to Auth0 Platform.
Namespace
Auth0\SDK\APICode
public function setAccessToken($access_token) {
$key = array_search('access_token', $this->persistantMap);
if ($key !== false) {
$this->store
->set('access_token', $access_token);
}
$this->access_token = $access_token;
return $this;
}