We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Request
1 parent 5d7bc7a commit 85e3cadCopy full SHA for 85e3cad
src/server/auth/middleware/clientAuth.ts
@@ -13,16 +13,14 @@ export type ClientAuthenticationMiddlewareOptions = {
13
const ClientAuthenticatedRequestSchema = z.object({
14
client_id: z.string(),
15
client_secret: z.string().optional(),
16
-})
+});
17
18
-declare global {
19
- namespace Express {
20
- interface Request {
21
- /**
22
- * The authenticated client for this request, if the `authenticateClient` middleware was used.
23
- */
24
- client?: OAuthClientInformationFull;
25
- }
+declare module "express-serve-static-core" {
+ interface Request {
+ /**
+ * The authenticated client for this request, if the `authenticateClient` middleware was used.
+ */
+ client?: OAuthClientInformationFull;
26
}
27
28
0 commit comments