Skip to content

Commit b5edb5c

Browse files
committed
Fix for disabling credentials & magic link forms
1 parent 3dae3ed commit b5edb5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/auth/auth-form.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function AuthForm({
127127
if (view === "callback") return <AuthCallback redirectTo={redirectTo} />
128128

129129
if (view === "signIn") {
130-
return credentials || !magicLink ? (
130+
return credentials ? (
131131
<SignInForm
132132
className={className}
133133
classNames={classNames}
@@ -136,7 +136,7 @@ export function AuthForm({
136136
isSubmitting={isSubmitting}
137137
setIsSubmitting={setIsSubmitting}
138138
/>
139-
) : (
139+
) : magicLink ? (
140140
<MagicLinkForm
141141
className={className}
142142
classNames={classNames}
@@ -146,7 +146,7 @@ export function AuthForm({
146146
isSubmitting={isSubmitting}
147147
setIsSubmitting={setIsSubmitting}
148148
/>
149-
)
149+
) : null
150150
}
151151

152152
if (view === "twoFactor") {

0 commit comments

Comments
 (0)