Hiyve Components - v1.0.0
    Preparing search index...

    Interface HiyveAuthMiddlewareOptions

    Options for createAuthMiddleware.

    interface HiyveAuthMiddlewareOptions {
        cacheMaxSize?: number;
        cacheTtlMs?: number;
        optional?: boolean;
    }
    Index

    Properties

    cacheMaxSize?: number

    Maximum number of cached tokens (default: 1000).

    cacheTtlMs?: number

    Cache TTL in milliseconds (default: 300000 — 5 minutes).

    optional?: boolean

    When true, requests without a token proceed with req.hiyveUser = null instead of receiving a 401 response.