backend/types/http.d.ts
creations 57fb8d8bb1
All checks were successful
Code quality checks / biome (push) Successful in 8s
add fast-jwt ( not tested ) and make the user actual register
2025-05-02 18:41:10 -04:00

15 lines
332 B
TypeScript

interface GenericJsonResponseOptions {
headers?: Record<string, string>;
message?: string;
error?: string;
[key: string]: unknown;
}
interface UserSession {
id: string;
username: string;
email: string;
is_verified: boolean;
iat?: number; // issued at (added by JWT libs)
exp?: number; // expiration (added by JWT libs)
}