- Preparing search index...
- The search index is not available
Scute
Function createMiddlewareClient
- createMiddlewareClient(context, config?): ScuteClient
-
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
Returns ScuteClient
IMPORTANT: Do not expose to the browser