supabase-community / flutter-auth-ui

Supabase Auth UI library for Flutter
https://supabase.com
MIT License
114 stars 58 forks source link

feat: Support for displaying sign-in or sign-up initially #116

Closed dshukertjr closed 1 month ago

dshukertjr commented 1 month ago

What kind of change does this PR introduce?

feature

What is the current behavior?

We always display the login form by default

What is the new behavior?

We added a parameter to control whether sign up for or sign-in form is being displayed initially.

Additional context

From the business perspective, depending on the UX flow, you should be able to present either login or sign-up. For example, a page with CTA "try for free, no credit card required" should redirect to a sign-up form, not a login form that requires one additional unnecessary step from the user.

https://github.com/supabase-community/flutter-auth-ui/pull/107