feat(auth): implementar passkeys e gerenciamento em ajustes

This commit is contained in:
Felipe Coutinho
2026-03-02 01:33:05 +00:00
parent ff382a0ca7
commit 3d3a9e1414
13 changed files with 3164 additions and 7 deletions

View File

@@ -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