Iskra API Reference
    Preparing search index...

    Function session

    • The user of a session, as AuthFeature (better-auth) puts it in c.get('user'): null when there is none.

      Type Parameters

      Parameters

      • options: {
            cookie?: string;
            toActor?: (user: { email?: string; id: string }, c: Context) => A;
        } = {}
        • Optionalcookie?: string

          The session cookie, for the spec. Default better-auth's, better-auth.session_token.

        • OptionaltoActor?: (user: { email?: string; id: string }, c: Context) => A

      Returns Gate<A>