This module provides methods for manipulating user authentication and auto logout flow
Renews the current user's authentication cookie if the site is configured to support sliding expiration. Renews the state globally across all tabs and windows of the browser for the user, closing any open logout warnings by raising user.logout.warning.canceled.
Configures options for authentication logout flow
warningThresholdSeconds: Threshold before logout in seconds at which user.logout.warning messages start to raise. Configuring this value configures it once for all open tabs and windows, as all tabs and windows share a single authentication manager. (default: 45)
returnUrl: Optional URL use when redirecting after login following an automatic logout. This is usually already set by default to the current URL at page load, but it is sometimes useful to override via client script in single-page experiences.