Skip to content

Commit

Permalink
Merge pull request #13 from miurla/revert-12-challenge-auth
Browse files Browse the repository at this point in the history
Revert "Refactor authentication logic in page component"
  • Loading branch information
miurla authored Apr 13, 2024
2 parents c775c61 + 2e116ef commit 4d5d744
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { redirect } from 'next/navigation'
export const runtime = 'edge'

export default async function Page() {
const supabase = createClient()
// const supabase = createClient()

const {
data: { user }
} = await supabase.auth.getUser()
// const {
// data: { user }
// } = await supabase.auth.getUser()

if (!user) {
return redirect('/login')
}
// if (!user) {
// return redirect('/login')
// }

return <Chat />
}

0 comments on commit 4d5d744

Please sign in to comment.