Maps an opened session to the principal it carries. Return null when
the session holds no identity — the strategy chain then continues.
(view: SessionView) => IPrincipal | null
Maps an opened session to the principal it carries. Return null when
the session holds no identity — the strategy chain then continues.
(view: SessionView) => IPrincipal | null
import { type SessionAuthOptions } from "auth-plugin/src/index.ts";