feat: update username and sign up email should allow username

This commit is contained in:
Bereket Engida
2024-10-21 08:12:58 +03:00
parent d4a1d1a70e
commit 9feed3a587
11 changed files with 201 additions and 59 deletions

View File

@@ -5,6 +5,7 @@ import {
twoFactorClient,
adminClient,
multiSessionClient,
usernameClient,
} from "better-auth/client/plugins";
import { toast } from "sonner";
@@ -18,6 +19,7 @@ export const client = createAuthClient({
passkeyClient(),
adminClient(),
multiSessionClient(),
usernameClient(),
],
fetchOptions: {
onError(e) {