first commit
Some checks failed
Publish / Publish Job (push) Failing after 37s

This commit is contained in:
Дмитрий
2026-03-27 10:38:23 +03:00
commit be1e21e699
21 changed files with 1002 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
export interface TokenPayload {
sub: string
}
// роли храним в токене
export interface TokenRolePayload {
id: string | number
name: string
}
export type VerifyResult =
| { valid: true; userId: string; jti: string; role: TokenRolePayload }
| { valid: false; reason: string }