You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
getUserIdFromRequest
Signature
getUserIdFromRequest: (
options: {
req: MiddlewareContext["req"] & {
cookies: Record<string,
string>;
};
props?: {
userId?: string;
};
}
) => anyParameters
| Name | Required | Type | Description |
|---|---|---|---|
options | Required | { req: MiddlewareContext["req"] & { cookies: Record<string, string>; }; props?: { userId?: string; }; } |
Referenced Types
MiddlewareContext