Relative Content

Tag Archive for next.jssupabase

Failed to launch , because the scheme does not have a registered handler in nextjs supabase

I’m encountering an issue with my GitHub OAuth application where the redirect_uri in the authorization callback URL is being altered. Specifically, an extra “y” character is being added to the start of the URL when the authorization process is initiated, resulting in a “scheme does not have a registered handler” error. I’ve double-checked my code, GitHub OAuth settings, and URL encoding, but the issue persists. How can I troubleshoot and resolve this problem to ensure the callback URL is correctly formed and processed during the OAuth flow? Any advice or insights would be appreciated.

Next.js supabase error Unhandled Runtime Error

Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading ‘onAuthStateChange’) page.jsx: import AuthForm from “./components/AuthForm”; export default function Home() { return ( <div className=”min-h-screen bg-gray-900 flex flex-col justify-center”> {/* Full-screen container */} <div className=”flex-1 flex justify-center items-center”> <div className=”text-center”> <h1 className=”text-5xl font-bold text-white mb-4″>Welcome to Watchlist</h1> <p className=”text-xl text-gray-300″>Manage your watchlist personal space 100%</p> […]

How to create a shareable Supbase server client

I have a nextjs app that uses supabase as a database and authentication. I’m using 2 ways to instantiate the server side supabase client following these docs https://supabase.com/docs/guides/auth/server-side/nextjs?queryGroups=router&router=pages

nextjs – supabase/ssr – row level security

in one of my projects I’m using the new @supabase/ssr authentication lib. So far everything works. But when I enable RLS on the supabase table I canot figure out how to write a RLS so that only a known user can do some operation. ( like a user can only select own items (user_id = auth.uid()) ).