You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auth.currentUser?.email does not get set to the new email address after calling auth.updateUser with a new email address and clicking the link in both confirmation emails.
Describe the bug
auth.currentUser?.email
does not get set to the new email address after callingauth.updateUser
with a new email address and clicking the link in both confirmation emails.To Reproduce
flutter create supabase_auth
flutter pub add supabase_flutter
Paste the following into
main.dart
main.dart
flutter run -d web-server --web-hostname localhost --web-port 8000 --dart-define=SUPABASE_URL=<your-supabase-url> --dart-define=SUPABASE_ANON_KEY=<your-anon-key>
Go to
http://localhost:8000
Sign up with some email address xxx
Click the link in the confirmation email
Get redirected -> It says "Logged in as xxx" at the top
Change email from xxx to yyy
Click the link in the confirmation email sent to xxx
Click the link in the confirmation email sent to yyy
Get redirected -> It still says "Logged in as xxx" at the top although the email has changed in
auth.users
Expected behavior
The session after clicking the second confirmation link should contain the new email.
Version
supabase_auth 1.0.0+1
└── supabase_flutter 2.5.9
├── supabase 2.2.5
│ ├── functions_client 2.2.0
│ ├── gotrue 2.8.3
│ ├── postgrest 2.1.2
│ ├── realtime_client 2.2.0
│ ├── storage_client 2.0.2
The text was updated successfully, but these errors were encountered: