- Updated user schema to include isAdmin field. - Enhanced authentication hooks to fetch and set user admin status. - Created ProfileButton component for user profile actions. - Implemented profile and password update functionality. - Added session management for user accounts. - Developed login and signup pages with form handling. - Introduced layout server for user session data. - Updated daily page to reflect character changes.
13 lines
197 B
TypeScript
13 lines
197 B
TypeScript
import type { User, Session } from 'better-auth/minimal';
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Locals {
|
|
user?: User & { isAdmin?: boolean };
|
|
session?: Session;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|