diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-13 14:42:56 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-13 14:45:31 +0000 |
| commit | c883bee10ed40792c2ae35bdd9745649cfffa2f2 (patch) | |
| tree | 86223d42d454472687260deb90e2a45d19e3e99a /packages/web/components/auth | |
| parent | 400b696f74d7bde3717483ed7cfec5b8de675018 (diff) | |
| download | karakeep-c883bee10ed40792c2ae35bdd9745649cfffa2f2.tar.zst | |
feature: Add login page and logout button
Diffstat (limited to '')
| -rw-r--r-- | packages/web/components/auth/login.tsx | 17 | ||||
| -rw-r--r-- | packages/web/components/auth/logout.tsx | 17 |
2 files changed, 0 insertions, 34 deletions
diff --git a/packages/web/components/auth/login.tsx b/packages/web/components/auth/login.tsx deleted file mode 100644 index 4cd55546..00000000 --- a/packages/web/components/auth/login.tsx +++ /dev/null @@ -1,17 +0,0 @@ -"use client"; -import { signIn } from "next-auth/react"; - -export const LoginButton = () => { - return ( - <button - className="btn btn-primary" - onClick={() => - signIn(undefined, { - callbackUrl: "/", - }) - } - > - Sign in - </button> - ); -}; diff --git a/packages/web/components/auth/logout.tsx b/packages/web/components/auth/logout.tsx deleted file mode 100644 index 8d627f68..00000000 --- a/packages/web/components/auth/logout.tsx +++ /dev/null @@ -1,17 +0,0 @@ -"use client"; -import { signOut } from "next-auth/react"; - -export const LogoutButton = () => { - return ( - <button - className="btn btn-ghost normal-case" - onClick={() => - signOut({ - callbackUrl: "/", - }) - } - > - Sign Out - </button> - ); -}; |
