Protected
verifyProtected
failureThe error message to set in the session.
The request to get the cookie out of.
The session storage to retrieve the session from.
The strategy options.
Optional
cause: ErrorIf the throwOnError is set to true.
If the failureRedirect is set or throwOnError is false.
Protected
successReturns the user data or throw a redirect to the successRedirect.
The user data to set in the session.
The request to get the cookie out of.
The session storage to retrieve the session from.
The strategy options.
The user data.
If the successRedirect is set, it will redirect to it.
Throw an AuthorizationError or a redirect to the failureRedirect.