fix: sync verification state with auth guards

This commit is contained in:
zetaloop
2026-02-21 15:53:46 +08:00
parent 6469811382
commit 6ed8620ca6
5 changed files with 70 additions and 7 deletions
+3
View File
@@ -1,4 +1,5 @@
export type UserRole = "consumer" | "player" | "owner"
export type VerificationStatus = "pending" | "approved" | "rejected"
export interface User {
id: string
@@ -6,6 +7,8 @@ export interface User {
nickname: string
avatar: string
role: UserRole
verifiedRoles?: UserRole[]
verificationStatus?: Partial<Record<UserRole, VerificationStatus>>
phone?: string
bio?: string
createdAt: string