getSession static method

Future<Session?> getSession(
  1. Request request
)

Returns the session for the specified request, if it was previously created; otherwise returns null.

Implementation

static Future<Session?> getSession(Request request) async {
  storage.clearOutdated();
  final sessionId = getSessionId(request);
  return await storage.getSession(sessionId);
}