- added settings page and function
- add Role Ring for avatar and display role for user nav
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user