alias of AuthUser
A base class for users.
Any specific user implementation used with Quart-Auth should
inherit from this.
A decorator to restrict route access to authenticated users.
This should be used to wrap a route handler (or view function) to
enforce that only authenticated requests can access it. Note that
it is important that this decorator be wrapped by the route
decorator and not vice, versa, as below.
async def index():
If the request is not authenticated a
quart.exceptions.Unauthorized exception will be raised.
Use this to start a session with the authenticated user.
This will result in current_user resolving to the user.
user – The user to consider authenticated and to start a
remember – If True write consider the session permanent with
a duration equal to the QUART_AUTH_DURATION configuration
Use this to end the session of the current_user.
Use this to renew the cookie (a new max age).