Interface PersistenceInterface
Namespace: Authentication\Authenticator
Method Summary
-
clearIdentity() public
Clears the identity data
-
persistIdentity() public
Persists the users data
Method Detail
clearIdentity() ¶ public
clearIdentity(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response): array
Clears the identity data
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request object.
-
Psr\Http\Message\ResponseInterface
$response The response object.
Returns
array
persistIdentity() ¶ public
persistIdentity(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, ArrayAccess|array $identity): array
Persists the users data
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request object.
-
Psr\Http\Message\ResponseInterface
$response The response object.
-
ArrayAccess|array
$identity Identity data to persist.
Returns
array