You are here

public function Auth0UserSigninEvent::__construct in Auth0 Single Sign On 8.2

Same name and namespace in other branches
  1. 8 src/Event/Auth0UserSigninEvent.php \Drupal\auth0\Event\Auth0UserSigninEvent::__construct()

Initialize the event.

Parameters

\Drupal\user\UserInterface $user: The current user.

array $auth0Profile: The Auth0 profile array.

string $refreshToken: The refresh token.

string $expiresAt: The time when the ID Token expires in unix timestamp (seconds only).

File

src/Event/Auth0UserSigninEvent.php, line 58

Class

Auth0UserSigninEvent
User signin event.

Namespace

Drupal\auth0\Event

Code

public function __construct(UserInterface $user, array $auth0Profile, $refreshToken, $expiresAt) {
  $this->user = $user;
  $this->auth0Profile = $auth0Profile;
  $this->refreshToken = $refreshToken;
  $this->expiresAt = $expiresAt;
}