supabase-community / flutter-auth-ui

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

onSuccess on SupaSocialsAuth runs twice #128

Open andyngdz opened 4 weeks ago

andyngdz commented 4 weeks ago

Bug report

Describe the bug

When using onSuccess callback on SupaSocialsAuth, it runs twice which leads to unexpected behaviors if want to redirect back to other screens, or trigger additional events.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Setup SupaSocialsAuth and sign in
  2. Use onSuccess callback
  3. Use print/log the session. Show twices

Expected behavior

onSuccess should call only one time after sign in successfully

System information