Function createMiddlewareClient

  • Parameters

    • context: {
          req: NextRequest;
          res: NextResponse<unknown>;
      }
      • req: NextRequest
      • res: NextResponse<unknown>
    • Optional config: {
          appId?: UniqueIdentifier;
          baseUrl?: string;
          debug?: boolean;
          preferences?: { sessionStorageAdapter?: ScuteStorage | undefined; refetchOnWindowFocus?: boolean | undefined; refetchInverval?: number | undefined; httpOnlyRefresh?: boolean | undefined; };
          secretKey?: string;
      }
      • Optional appId?: UniqueIdentifier
      • Optional baseUrl?: string
      • Optional debug?: boolean
      • Optional preferences?: { sessionStorageAdapter?: ScuteStorage | undefined; refetchOnWindowFocus?: boolean | undefined; refetchInverval?: number | undefined; httpOnlyRefresh?: boolean | undefined; }
      • Optional secretKey?: string

        IMPORTANT: Do not expose to the browser

    Returns ScuteClient

Generated using TypeDoc