feat(auth): implementar passkeys e gerenciamento em ajustes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { passkey } from "@better-auth/passkey";
|
||||
import { betterAuth } from "better-auth";
|
||||
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
||||
import type { GoogleProfile } from "better-auth/social-providers";
|
||||
@@ -83,6 +84,13 @@ export const auth = betterAuth({
|
||||
},
|
||||
},
|
||||
|
||||
// Plugins
|
||||
plugins: [
|
||||
passkey({
|
||||
rpName: "OpenMonetis",
|
||||
}),
|
||||
],
|
||||
|
||||
// Google OAuth (se configurado)
|
||||
socialProviders:
|
||||
googleClientId && googleClientSecret
|
||||
|
||||
Reference in New Issue
Block a user