We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e02b34 commit df7a593Copy full SHA for df7a593
components/auth-components.tsx
@@ -1,6 +1,5 @@
1
import { signIn, signOut } from "auth"
2
import { Button } from "./ui/button"
3
-import { redirect } from "next/navigation"
4
5
export function SignIn({
6
provider,
@@ -10,9 +9,7 @@ export function SignIn({
10
9
<form
11
action={async () => {
12
"use server"
13
- const url = await signIn(provider, { redirect: false })
14
- // TODO: fix in next-auth
15
- redirect(url.replace("signin", "api/auth/signin"))
+ await signIn(provider)
16
}}
17
>
18
<Button {...props}>Sign In</Button>
0 commit comments