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
After logging in with auth0, the credentials cannot be retrieved on Android or the Web (Works for iOS). The warning message, No stored state: unable to handle response appears on the console when the webpage gets stuck and you have to kill the app and relaunch the app to try logging in again.
Initially, I was using the flutter_appauth package for logging in using Auth0 and everything was working fine. Now, I am trying to migrate it to the official Auth0 package i.e. auth0_flutter and it is now working for Android and Web.
Reproduction
Login function below:
Future<Credentials?> login() async {
try {
if (kIsWeb) {
/// Attempt to login the user with the redirect methodawait _auth0Web.loginWithRedirect(
audience: auth0Audience,
scopes: authScopes['auth'],
redirectUrl: auth0RedirectUri);
returnawait _auth0Web.credentials();
} else {
/// Handle the needed credentials for mobileCredentials? credentials =await _auth0
.webAuthentication(scheme:'com.project.portal')
.login(
audience: auth0Audience,
scopes:const {'openid', 'profile', 'email', 'offline_access'},
redirectUrl: auth0RedirectUri,
idTokenValidationConfig:IdTokenValidationConfig(issuer:'https://$auth0Domain'),
safariViewController:constSafariViewController(),
parameters: {'prompt':'login'},
);
return credentials;
}
} onExceptioncatch (e) {
print('Error logging in: $e');
returnnull;
}
}
On Auth0, I have first created a new Native Application.
I have created a flutter application that supports iOS, Android, and the Web which uses the same configuration from Auth0.
The auth0 domain is a custom domain
Flutter Doctor Output
Doctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1.1 23B81 darwin-x64, locale en-IN)[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc2)[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)[✓] Chrome - develop for the web[✓] Android Studio (version 2022.3)[✓] VS Code (version 1.85.0)[✓] Connected device (3 available)[✓] Network resources• No issues found!
auth0_flutter version
1.3.1
Flutter version
3.13.9
Platform
Android, Web
Platform version(s)
No response
The text was updated successfully, but these errors were encountered:
Checklist
Description
After logging in with auth0, the credentials cannot be retrieved on Android or the Web (Works for iOS). The warning message,
No stored state: unable to handle response
appears on the console when the webpage gets stuck and you have to kill the app and relaunch the app to try logging in again.Initially, I was using the flutter_appauth package for logging in using Auth0 and everything was working fine. Now, I am trying to migrate it to the official Auth0 package i.e. auth0_flutter and it is now working for Android and Web.
Reproduction
Additional context
On Auth0, I have first created a new Native Application.
I have created a flutter application that supports iOS, Android, and the Web which uses the same configuration from Auth0.
The auth0 domain is a custom domain
Flutter Doctor Output
auth0_flutter version
1.3.1
Flutter version
3.13.9
Platform
Android, Web
Platform version(s)
No response
The text was updated successfully, but these errors were encountered: