Supabase OAuth Popup Demo
Sign in via popup, then query the demos
table in Supabase. Popups must be triggered from a user gesture, so click the button below to start.
- Click Fetch data. A Google OAuth popup appears; complete the sign-in.
- After the popup closes, the status on this page shows your email and the output panel lists the latest rows.
- Reload the page and click Fetch data again—no popup should appear because the session persists.
- Click Log out. The status clears and the output resets to the hint text.
- Click Fetch data once more. The popup returns, prompting you to sign in again before data loads.
The login popup functionality is handled by the single function
ensureSupabaseSession()
Latest rows
Click “Fetch data” to load rows…