Fix edge compat
This commit is contained in:
parent
c332a1b6f1
commit
0996de27e6
2 changed files with 7 additions and 4 deletions
|
|
@ -1,11 +1,13 @@
|
|||
"use client";
|
||||
import { signIn } from "@auth/nextjs/client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export function Login() {
|
||||
const router = useRouter();
|
||||
return (
|
||||
<button
|
||||
className="inline-flex w-full items-center justify-center rounded border border-zinc-800 bg-white h-8 px-4 -my-1.5 text-sm leading-6 tracking-tight text-zinc-900 transition-colors ease-in-out hover:bg-zinc-100 disabled:cursor-not-allowed disabled:opacity-50"
|
||||
onClick={() => signIn("github")}
|
||||
onClick={() => router.push("/api/auth/signin")}
|
||||
>
|
||||
<span className="font-medium">Login</span>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue