Skip to content

Commit

Permalink
added auth again
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 21, 2024
1 parent aa0ac72 commit 2481205
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/components/AuthPage/AuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default function AuthPage ({children} : {children: React.ReactNode}) {

useEffect(() => {

/* Uncomment for auth */
/* if (window) {

if (window) {
console.log("window is here")
if (window.matchMedia('(display-mode: standalone)').matches) {
console.log('standalone')
Expand All @@ -35,7 +35,7 @@ export default function AuthPage ({children} : {children: React.ReactNode}) {
router.push('/');
}

} */
}



Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export default function RootLayout({
>
<ZeroDevProvider projectId={'f6375b6f-2205-4fc7-bc87-f03218789b86'}>
<PrivyProvider
onSuccess={() => router.push('/home')}
onSuccess={() => {
router.push('/home');
}}
appId={'cltk97hyk016h7afh32g4363z'}
config={{
appearance: {
Expand Down
2 changes: 2 additions & 0 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Button } from '../components/ui/button';

import { motion } from 'framer-motion';
import { BackgroundGradientAnimation } from '../components/ui/background-gradient-animation';
import Link from 'next/link';

const Page = () => {
const [isInstalled, setIsInstalled] = useState(false);
Expand Down Expand Up @@ -74,6 +75,7 @@ const Page = () => {
<Button className='mt-4' disabled={!ready || authenticated} onClick={login}>
Login
</Button>
<Link href={'/home'}>home</Link>


</div>
Expand Down

0 comments on commit 2481205

Please sign in to comment.