forked from git.gladyson/openmonetis
feat(auth): implementar passkeys e gerenciamento em ajustes
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { passkeyClient } from "@better-auth/passkey/client";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
const baseURL = process.env.BETTER_AUTH_URL?.replace(/\/$/, "");
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
...(baseURL ? { baseURL } : {}),
|
||||
plugins: [passkeyClient()],
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user