supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
656 stars 154 forks source link

How are you supposed to sign up with OAuth providers ? #914

Closed TheCarpetMerchant closed 1 month ago

TheCarpetMerchant commented 1 month ago

The only sign up function I can find is the email/password one. I want the user to be able to sign up using OAuth, how can I achieve that ?

bdlukaa commented 1 month ago

If the user exists, the user will be signed in. If the user doesn't exist, it will sign up from a single function. There is no need to split this into two different functions because they perform the same functionality.

dshukertjr commented 1 month ago

Yup, you can use the same signInWithOAuth() or signInWithIdToken() method to both sign-up and sign-in.

TheCarpetMerchant commented 1 month ago

As, might be good to mention this in the docs.