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
Error during signUp with Supabase Auth in Flutter: _asyncStorage != null: You need to provide asyncStorage to perform pkce flow. The login function works correctly, the error is only when creating a new user.
Description
When attempting to create a new user using the signUp method from the supabase_flutter library in Flutter, the following error occurs:
Steps to Reproduce
Configure Supabase in Flutter as per the official documentation.
Attempt to create a new user using the signUp method.
Observe the mentioned error.
Expected Behavior
The signUp method should create a new user without throwing exceptions, provided all necessary parameters are supplied correctly.
Actual Behavior
The signUp method throws an exception indicating that _asyncStorage cannot be null and that asyncStorage needs to be provided to perform the PKCE flow.
@alexandrespindola You must be overriding the authOptions of the Supabase.initialize() somewhere some how. Make sure you are using the latest supabase_flutter version, and double, tripple check that you are not doing so.
If you still cannot find the cause, create a fresh new Flutter project and try it out there. If that doesn't work either, then you might have updated your pub cache or something. Try resetting it.
Title
Error during signUp with Supabase Auth in Flutter: _asyncStorage != null: You need to provide asyncStorage to perform pkce flow. The login function works correctly, the error is only when creating a new user.
Description
When attempting to create a new user using the signUp method from the supabase_flutter library in Flutter, the following error occurs:
Steps to Reproduce
Configure Supabase in Flutter as per the official documentation.
Attempt to create a new user using the signUp method.
Observe the mentioned error.
Expected Behavior
The signUp method should create a new user without throwing exceptions, provided all necessary parameters are supplied correctly.
Actual Behavior
The signUp method throws an exception indicating that _asyncStorage cannot be null and that asyncStorage needs to be provided to perform the PKCE flow.
Example Code
Excerpt from main.dart
The code below didn't work either.
[...]
[...]
The text was updated successfully, but these errors were encountered: