sessionOrNull

Authenticated session for the current session-protected typed route, or null when no session was resolved.

Use this property inside authenticateWithOptional session route blocks instead of ApplicationCall.session.

Report a problem