You are here

public function SessionStateHandler::issue in Auth0 Single Sign On 8.2

Generate state value to be used for the state param value during authorization.

Return value

string

Overrides StateHandler::issue

File

vendor/auth0/auth0-php/src/API/Helpers/State/SessionStateHandler.php, line 43

Class

SessionStateHandler
Session based implementation of StateHandler.

Namespace

Auth0\SDK\API\Helpers\State

Code

public function issue() {
  $state = uniqid('', true);
  $this
    ->store($state);
  return $state;
}