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.
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.