Skip to content

Commit

Permalink
feat: add 'use server' directive to checkAuth function
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavManko committed Jan 10, 2025
1 parent e74cfc3 commit f666015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export default async function Login({
}

const checkAuth = async () => {
"use server"

const supabase = await createClient()
const {
data: { user }
Expand Down

0 comments on commit f666015

Please sign in to comment.