archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
+15
View File
@@ -0,0 +1,15 @@
import jwt from 'jsonwebtoken';
export type ActorType = 'admin' | 'employee' | 'renter';
export type ActorTokenPayload = jwt.JwtPayload & {
sub: string;
type: ActorType;
sessionVersion?: number;
last2faAt?: number;
};
export declare function signActorToken(actorId: string, actorType: ActorType, options?: Pick<jwt.SignOptions, 'expiresIn'> & {
sessionVersion?: number;
last2faAt?: number;
}): string;
export declare function verifyActorToken(token: string, expectedType: ActorType): ActorTokenPayload;
export declare function verifyAnyActorToken(token: string): ActorTokenPayload;
//# sourceMappingURL=tokens.d.ts.map