supabase-community / flutter-auth-ui

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

Unable to sign in (link) for existing users when using anonymous #103

Open eifr opened 5 months ago

eifr commented 5 months ago

Bug report

Describe the bug

When using Anonymous sign-in, a user that already signed in before is unable to sign in again and I'm getting Identity+is+already+linked+to+another+user` instead.

To Reproduce

  1. enable anonymous sign in (for me its automatically anon signing in when not authenticated
  2. sign in with oAuth
  3. sign out
  4. sign in again

Expected behavior

The new anon user should be merged with the existing user

Additional context

probably related to https://github.com/supabase/auth/issues/1525