src/Laravel/HasNorthstarToken.php
public function setOAuthToken(AccessToken $token)
    {
        $this->access_token = $token->getToken();
        $this->access_token_expiration = $token->getExpires();
        $this->refresh_token = $token->getRefreshToken();
        $this->role = $token->getValues()['role'];
    }
public function setOAuthToken(AccessToken $token)
    {
        $this->access_token = $token->getToken();
        $this->access_token_expiration = $token->getExpires();
        $this->refresh_token = $token->getRefreshToken();
        $this->role = $token->getValues()['role'];
    }
public function setOAuthToken ( AccessToken $ token ) { $ this -> access_token = $ token -> getToken ( ) ; $ this -> access_token_expiration = $ token -> getExpires ( ) ; $ this -> refresh_token = $ token -> getRefreshToken ( ) ; $ this -> role = $ token -> getValues ( ) [ 'role' ] ; }
Save the access token for the user.

@param AccessToken $token
Save the access token for the user .