AuthenticateSession
class AuthenticateSession implements AuthenticatesSessions
Properties
| static protected null|callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
Methods
Validate the password hash against the stored value.
Get the path the user should be redirected to when their session is not authenticated.
Specify the callback that should be used to generate the redirect path.
Flush all static state.
Details
at line 25
__construct(Factory $auth)
Create a new middleware instance.
at line 68
protected void
storePasswordHashInSession(Request $request)
Store the user's current password hash in the session.
at line 89
protected bool
validatePasswordHash(string $passwordHash, mixed $storedValue)
Validate the password hash against the stored value.
Only HMAC artifacts are valid; Hypervel has no released raw-hash session artifacts to accept.
at line 100
protected void
logout(Request $request)
Log the user out of the application.
at line 116
protected Factory
guard()
Get the guard instance that should be used by the middleware.
at line 124
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
at line 139
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every subsequent session-mismatch.
at line 147
static void
flushState()
Flush all static state.