fetch auth session data from token
This commit is contained in:
@@ -2,4 +2,14 @@ export type AuthSessionType = 'WarrenAuth';
|
||||
export interface AuthSession {
|
||||
type: AuthSessionType;
|
||||
id: string;
|
||||
|
||||
user: AuthUser;
|
||||
expiresAt: number;
|
||||
}
|
||||
|
||||
export interface AuthUser {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
admin: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user