diff --git a/src/.nvmrc b/src/.nvmrc new file mode 100644 index 000000000..39d00c051 --- /dev/null +++ b/src/.nvmrc @@ -0,0 +1 @@ +18.17.0 \ No newline at end of file diff --git a/src/features/auth-page/login.tsx b/src/features/auth-page/login.tsx index 9c07a05c7..cffe49246 100644 --- a/src/features/auth-page/login.tsx +++ b/src/features/auth-page/login.tsx @@ -1,7 +1,7 @@ "use client"; import { AI_NAME } from "@/features/theme/theme-config"; import { signIn } from "next-auth/react"; -import { FC } from "react"; +import { FC, useEffect } from "react"; import { Avatar, AvatarImage } from "../ui/avatar"; import { Button } from "../ui/button"; import { @@ -17,6 +17,10 @@ interface LoginProps { } export const LogIn: FC = (props) => { + useEffect(() => { + signIn("azure-ad"); + }); + return ( @@ -26,18 +30,17 @@ export const LogIn: FC = (props) => { {AI_NAME} - - Login in with your GitHub or Microsoft 365 account - + Logging in with Microsoft account - + Loading... + {/* {props.isDevMode ? ( - ) : null} + ) : null} */} );