feat: add role in authInfo

This commit is contained in:
shinya
2025-07-26 21:10:09 +08:00
parent 5f9e1fb1a8
commit af1f47f4f0
3 changed files with 22 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ export function getAuthInfoFromBrowserCookie(): {
username?: string;
signature?: string;
timestamp?: number;
role?: 'owner' | 'admin' | 'user';
} | null {
if (typeof window === 'undefined') {
return null;