mirror of
https://github.com/better-auth/better-auth.git
synced 2026-09-01 02:55:08 -05:00
feat: update username and sign up email should allow username
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
twoFactor,
|
||||
admin,
|
||||
multiSession,
|
||||
username,
|
||||
} from "better-auth/plugins";
|
||||
import { reactInvitationEmail } from "./email/invitation";
|
||||
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
||||
@@ -115,5 +116,6 @@ export const auth = betterAuth({
|
||||
bearer(),
|
||||
admin(),
|
||||
multiSession(),
|
||||
username(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user