8 ms·
Been doing a lot of Auth related stuff the last day or two so in classic HN style this is very timely for me! One of the things that I really dislike about mos
by xcskier56 4y ago
Been doing a lot of Auth related stuff the last day or two so in classic HN style this is very timely for me!
One of the things that I really dislike about most auth providers is that it is very hard to implement login in your native UI. It almost always requires a redirect to a hosted UI page that is very clearly not your UI. We've found this a poor and potentially confusing user experience when you just need a form with username + password.
Question for Supabase: Is it possible to just have a form with username + password and POSTing the login details?
- niklasd 4y agoWould that not be a huge security risk? You could access the SSO credentials of your users that way.
- BuySomeDip 4y agoSupabase Auth engineer here. > Question for Supabase: Is it possible to just have a form with username + password and POSTing the login details? Yes this is how basic email+password sign-in works. No redirects are necessary. For the rest of the flows, some form of redirect is mandatory because that's how the authentication protocols work and we've found it convenient to implement other logins like magic links, email confirmations, etc.
- kangmingtay 4y agoIf you're using Flutter, we do have a chat app example that has a basic email + password login. (https://github.com/supabase-community/flutter-chat https://github.com/supabase-community/flutter-chat)