Skip to content

Commit df7a593

Browse files
committed
🔄 Synced local '.' with remote 'apps/examples/nextjs'
1 parent 4e02b34 commit df7a593

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/auth-components.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { signIn, signOut } from "auth"
22
import { Button } from "./ui/button"
3-
import { redirect } from "next/navigation"
43

54
export function SignIn({
65
provider,
@@ -10,9 +9,7 @@ export function SignIn({
109
<form
1110
action={async () => {
1211
"use server"
13-
const url = await signIn(provider, { redirect: false })
14-
// TODO: fix in next-auth
15-
redirect(url.replace("signin", "api/auth/signin"))
12+
await signIn(provider)
1613
}}
1714
>
1815
<Button {...props}>Sign In</Button>

0 commit comments

Comments
 (0)