Creates middleware that resolves session state and stores auth context.
Alias of middleware. Useful for readability in route composition.
Creates middleware that requires an authenticated session.
Optionaloptions: RequireAuthOptionsCreates a new session, sets cookie, and optionally hydrates request auth context.
Optionaloptions: SignInOptionsDeletes session data and clears the session cookie.
Optionaloptions: SignOutOptionsReturns auth context attached to the request, or an unauthenticated default value.
PrivatebuildPrivatemaybePrivatehandlePrivatemaybe
Framework-agnostic session runtime responsible for auth context hydration, session creation/revocation, and optional token refresh behavior.