Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onSuccess on SupaSocialsAuth runs twice #128

Open
andyngdz opened this issue Oct 24, 2024 · 0 comments
Open

onSuccess on SupaSocialsAuth runs twice #128

andyngdz opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andyngdz
Copy link

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

  • OS: macOS
  • Device: iPhone 13 Pro Max
  • supabase_auth_ui: ^0.5.4
  • Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64)
@andyngdz andyngdz added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant