@cauth/express 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/express-BgF1jv36.d.ts +12 -0
- package/dist/{index.d.cts → index.d.ts} +1 -12
- package/dist/index.js +28 -0
- package/package.json +3 -3
- package/dist/index.cjs +0 -28
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./express-BgF1jv36.js";
|
|
1
2
|
import * as express0 from "express";
|
|
2
3
|
import z$1, { z } from "zod";
|
|
3
4
|
import ms from "ms";
|
|
@@ -326,16 +327,4 @@ declare class ExpressContractor implements RoutesContract {
|
|
|
326
327
|
}: AuthGuardDeps) => (req: express0.Request, res: express0.Response, next: express0.NextFunction) => Promise<void | express0.Response<any, Record<string, any>>>;
|
|
327
328
|
}
|
|
328
329
|
//#endregion
|
|
329
|
-
//#region src/types/express.d.ts
|
|
330
|
-
declare global {
|
|
331
|
-
namespace Express {
|
|
332
|
-
interface Request {
|
|
333
|
-
cauth?: {
|
|
334
|
-
id: string;
|
|
335
|
-
role: string;
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
//#endregion
|
|
341
330
|
export { ExpressContractor };
|