ProtectedcreateCreates a 'cookie-set' header to refresh the user's session cookie.
Use these headers to log a user in.
Use these headers to log out the user.
ProtectedgetReads the user's assumed user headers and, if configured, gets the assumed user.
ProtectedgetGet all the parameters used for cookie generation.
OptionalisSignUpCookie?: booleanSet this to true when we are setting the initial cookie right after a user signs up.
This allows them to auto-authorize when they verify their email address.
This should only be set to true when a new user is signing up.
ProtectedgetCalls the provided getUserFromDatabase config.
Combines .getInsecureUser() and .getSecureUser() into one method.
If true, this method will generate headers to refresh the user's auth session. This
should likely only be done with a specific endpoint, like whatever endpoint you trigger
with the frontend auth client's checkUser.performCheck callback.
If true, this method will generate headers to refresh the user's auth session. This
should likely only be done with a specific endpoint, like whatever endpoint you trigger
with the frontend auth client's checkUser.performCheck callback.
Get all the JWT params used when creating the auth cookie, in case you need them for something else too.
Securely extract a user from their request headers.
If true, this method will generate headers to refresh the user's auth session. This
should likely only be done with a specific endpoint, like whatever endpoint you trigger
with the frontend auth client's checkUser.performCheck callback.
An auth client for creating and validating JWTs embedded in cookies. This should only be used in a backend environment as it accesses native Node packages.