You are here

public function Auth0::setUser in Auth0 Single Sign On 8.2

Set the user property to a userinfo array and, if configured, persist

Parameters

array $user - userinfo from Auth0.:

Return value

$this

1 call to Auth0::setUser()
Auth0::exchange in vendor/auth0/auth0-php/src/Auth0.php
Exchange authorization code for access, ID, and refresh tokens

File

vendor/auth0/auth0-php/src/Auth0.php, line 632

Class

Auth0
Class Auth0 Provides access to Auth0 authentication functionality.

Namespace

Auth0\SDK

Code

public function setUser(array $user) {
  if (in_array('user', $this->persistantMap)) {
    $this->store
      ->set('user', $user);
  }
  $this->user = $user;
  return $this;
}