© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
7 replies
Vitor Lana

Preventing Google User Signup with Supabase RLS in WeWeb

Add a "Log in with Google" button. This button is configured in Supabase, and you need to create a Row Level Security (RLS) rule in the
auth.users
auth.users
table to prevent the creation of users who log in with Google.

The button is integrated into WeWeb.

Currently, I am attempting to implement the following policy:

CREATE POLICY Block_Google_Signup
ON auth.users
FOR INSERT
WITH CHECK (
  ((auth.jwt() ->> 'provider') != 'google')
);
CREATE POLICY Block_Google_Signup
ON auth.users
FOR INSERT
WITH CHECK (
  ((auth.jwt() ->> 'provider') != 'google')
);


However, when the "Log in with Google" button is clicked, a new user is still being created in the
auth.users
auth.users
table, which I want to prevent.
The issue might be with the policy or with the configuration in WeWeb.


Let me know if you'd like further edits or enhancements!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WeWeb And Google Supabase Auth Not redirecting/Authenticating
SupabaseSSupabase / help-and-questions
2mo ago
Supabase RLS with Prisma
SupabaseSSupabase / help-and-questions
4mo ago
supabase user account signup confirmation email
SupabaseSSupabase / help-and-questions
8mo ago
New User Signup Failing with RLS Error Despite Correct Policy
SupabaseSSupabase / help-and-questions
6mo ago