feat: add user role field and implement Gravatar fallback for user avatars
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { betterAuth } from 'better-auth';
|
||||
import { prismaAdapter } from 'better-auth/adapters/prisma';
|
||||
// If your Prisma file is located elsewhere, you can change the path
|
||||
import { openAPI } from 'better-auth/plugins';
|
||||
import { db } from './prisma';
|
||||
|
||||
@@ -19,7 +18,7 @@ export const auth = betterAuth({
|
||||
enabled: true,
|
||||
},
|
||||
trustedOrigins: [process.env.APP_BASE_URL ?? 'http://localhost:5173'],
|
||||
plugins: [],
|
||||
plugins: [openAPI()],
|
||||
});
|
||||
|
||||
export type Session = typeof auth.$Infer.Session.session;
|
||||
|
||||
Reference in New Issue
Block a user