captureBaseSession method
void
captureBaseSession(
- AuthUserSession session
Captures the given session as the base (auth) user session if one has not already been set. Called after every sign-in so the original admin session is preserved across user switches.
Implementation
void captureBaseSession(AuthUserSession session) {
if (_baseSession == null) {
_baseSession = session;
logger.info(
this,
'Captured base session for user: ${session.userInfo.userId} '
'(isAdmin: ${session.userProfile.isAdmin})',
);
}
}