- added settings page and function

- add Role Ring for avatar and display role for user nav
This commit is contained in:
2026-01-06 21:37:53 +07:00
parent 8146565d2c
commit a4e96fe045
64 changed files with 2828 additions and 726 deletions

View File

@@ -12,12 +12,6 @@ import { betterAuth } from 'better-auth';
import { prismaAdapter } from 'better-auth/adapters/prisma';
import { admin as adminPlugin, organization } from 'better-auth/plugins';
// export interface User {
// image?: string | null;
// name?: string | null;
// email?: string | null;
// }
export interface Session {
session: SessionModel | null | undefined;
user?: User;
@@ -33,6 +27,11 @@ export const auth = betterAuth({
requireEmailVerification: false,
},
trustedOrigins: ['http://localhost:3001'],
advanced: {
database: {
generateId: false,
},
},
plugins: [
adminPlugin({
ac,