refactor(backend): Bestanden die enkel types of interfaces exporteren hernoemd naar *.d.ts
This commit is contained in:
parent
03c6ada0e5
commit
355c0a4eda
6 changed files with 3 additions and 3 deletions
9
backend/src/middleware/auth/authenticated-request.d.ts
vendored
Normal file
9
backend/src/middleware/auth/authenticated-request.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { Request } from "express";
|
||||
import { JwtPayload } from "jsonwebtoken";
|
||||
import {AuthenticationInfo} from "./authentication-info.js";
|
||||
|
||||
export interface AuthenticatedRequest extends Request {
|
||||
// Properties are optional since the user is not necessarily authenticated.
|
||||
jwtPayload?: JwtPayload;
|
||||
auth?: AuthenticationInfo;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue