mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
18 lines
281 B
TypeScript
18 lines
281 B
TypeScript
"use client";
|
|
|
|
import { signIn } from "next-auth/react";
|
|
|
|
export default function Login() {
|
|
const handleLogin = async () => {
|
|
signIn("azure-ad", {
|
|
callbackUrl: "/",
|
|
});
|
|
};
|
|
|
|
return (
|
|
<div>
|
|
<button onClick={handleLogin}>Login</button>
|
|
</div>
|
|
);
|
|
}
|