Base classes for frontend request handlers.
Session handler for all user-facing frontend endpoints. Base handler for frontend handlers that need sessions.
Derived from simpleauth/examples/handlers.py and subject to the MIT License.
Some parts of SessionHandler adapted from webapp2_extras.auth and subject to the Apache License (see LICENSE file).
Fetch the User object associated with the logged in user.
Returns true if a user is currently logged in, false otherwise.
Retrieves the user id, possibly retrieving the user.
If the cache time has not expired, this function does not retrieve the user object, but merely confirms that the user is considered logged in with the specified id. If the cache time has expired, then the token will be validated and, if valid, the user and validated token will be returned and stored.
If the user object is required, use get_user.