Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changed Supabase getSession API to getUser #216

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ramu-narasinga
Copy link

Changed the supabase.auth.getSession to auth.getUser as the docs recommends to use getUser since getSession can be spoofed.

More info can be found here - https://supabase.com/docs/guides/auth/server-side/nextjs

Copy link

codesandbox bot commented Dec 30, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Dec 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 30, 2024 10:15pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
sites ⬜️ Ignored (Inspect) Visit Preview Dec 30, 2024 10:15pm

Copy link

vercel bot commented Dec 30, 2024

Someone is attempting to deploy a commit to the Grida Team on Vercel.

A member of the Team first needs to authorize it.

// if no auth, sign in, redirect back here
if (data.session === null || data.session.user === null) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant