Setu-TS
    Preparing search index...

    Module session-plugin/src

    import { createApplication } from '@setu-ts/kernel';
    import { RuntimePlugin } from '@setu-ts/runtime';
    import { getSession, SessionPlugin } from '@setu-ts/session-plugin';

    const app = createApplication({
    plugins: [RuntimePlugin(), SessionPlugin({ secret: mySecret, csrf: {} })],
    });

    app.router.get('/me', (ctx) => {
    const session = getSession(ctx);
    return ctx.response.json({ userId: session.get<string>('userId') ?? null });
    });
    CacheSessionStore
    CsrfTokenMismatchError
    MemorySessionStore
    SessionMiddlewareMissingError
    SessionSecretMissingError
    SessionService
    SessionTooLargeError
    CacheSessionStoreOptions
    CsrfFormOptions
    MemorySessionStoreDeps
    PublishedCsrfConfig
    SessionCookieOptions
    SessionPluginOptions
    SessionServiceDeps
    SessionMode
    CSRF_CONFIG_STATE_KEY
    CSRF_SESSION_KEY
    csrfFormMiddleware
    csrfTokenField
    getCsrfToken
    getSession
    sessionMiddleware
    SessionPlugin
    verifyCsrfToken