© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
Sky

Is it possible to abort a login attempt?

My website has both premium and free users, and I have a mobile app that I'd like to only allow logins from premium users.

I read about the new Supabase auth hooks and realized I could use raw app metadata to determine if a premium flag is attached to the user. But I'm not sure if I can abort the login if the flag is missing, like if a free user tries to log in.

Futhermore I'd like to allow both users to login normally on my website. So i'd need a way to differentiate between requests from my website and app.
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

Is it possible to restore a project?
SupabaseSSupabase / help-and-questions
3y ago
Is it possible to rename a joined table?
SupabaseSSupabase / help-and-questions
3y ago
Multiple clients / Possible abuse attempt 8618
SupabaseSSupabase / help-and-questions
3y ago
is it possible to query a view from flutterflow?
SupabaseSSupabase / help-and-questions
3y ago