diff options
| author | realtradam <[email protected]> | 2024-06-18 22:54:33 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-18 22:54:33 -0400 |
| commit | d477cb8af05a6b8acdb8afa1811777a68e742211 (patch) | |
| tree | a1e2f4d41e5cbcb31fde5315a8b12086d1f10199 /src/components | |
| parent | c8b131e33e54ef11e09f22efd83e9e83412996ce (diff) | |
| download | malcz.com-d477cb8af05a6b8acdb8afa1811777a68e742211.tar.gz malcz.com-d477cb8af05a6b8acdb8afa1811777a68e742211.zip | |
dynamic login
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/CloseWindow.tsx | 1 | ||||
| -rw-r--r-- | src/components/Layout.tsx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/CloseWindow.tsx b/src/components/CloseWindow.tsx index 247e794..40c5962 100644 --- a/src/components/CloseWindow.tsx +++ b/src/components/CloseWindow.tsx @@ -3,6 +3,7 @@ //export default () => ( export default function Home () { + localStorage.setItem("logged in trigger", String(Math.random())); window.close(); window.location.replace("/"); diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 960e112..fc50468 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -8,6 +8,7 @@ export default function Layout ({userData}: userData) const loginLink = () => { window.open(`https://github.com/login/oauth/authorize?client_id=${import.meta.env.VITE_GITHUB_CLIENTID}`); }; + console.log(userData); return ( <> <div id="page" className="star flex flex-row min-h-screen max-h-screen bg-amber-400 text-stone-950 text-xl bg-star bg-repeat bg-[length:170px_170px]"> |
