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
If you call the web authentication login method too fast after app is brought to the foreground, the login fails with the following error:
WebAuthenticationException (OTHER: An unexpected error occurred. CAUSE: Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=3 "The UIWindowScene for the returned window was not in the foreground active state." UserInfo={NSDebugDescription=The UIWindowScene for the returned window was not in the foreground active state.}) [K] #0 MethodChannelAuth0FlutterWebAuth.invokeRequest (package:auth0_flutter_platform_interface/src/method_channel_auth0_flutter_web_auth.dart:45:7) <asynchronous suspension> #1 MethodChannelAuth0FlutterWebAuth.login (package:auth0_flutter_platform_interface/src/method_channel_auth0_flutter_web_auth.dart:21:9) <asynchronous suspension> #2 WebAuthentication.login (package:auth0_flutter/src/mobile/web_authentication.dart:89:25) <asynchronous suspension> #3 AuthService.acceptInvite (package:knowby_pro/features/auth/state/auth_service.dart:368:27) <asynchronous suspension>
We are only able to get around this by adding a fake delay before calling the login method.
Reproduction
Create a new flutter route in the example which calls web auth login as soon as the route loads
Deeplink to that route when app is in the background (iOS)
Additional context
No response
auth0_flutter version
1.7.2
Flutter version
3.22.0
Platform
iOS
Platform version(s)
iOS 17.5
The text was updated successfully, but these errors were encountered:
Checklist
Description
If you call the web authentication login method too fast after app is brought to the foreground, the login fails with the following error:
WebAuthenticationException (OTHER: An unexpected error occurred. CAUSE: Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=3 "The UIWindowScene for the returned window was not in the foreground active state." UserInfo={NSDebugDescription=The UIWindowScene for the returned window was not in the foreground active state.}) [K] #0 MethodChannelAuth0FlutterWebAuth.invokeRequest (package:auth0_flutter_platform_interface/src/method_channel_auth0_flutter_web_auth.dart:45:7) <asynchronous suspension> #1 MethodChannelAuth0FlutterWebAuth.login (package:auth0_flutter_platform_interface/src/method_channel_auth0_flutter_web_auth.dart:21:9) <asynchronous suspension> #2 WebAuthentication.login (package:auth0_flutter/src/mobile/web_authentication.dart:89:25) <asynchronous suspension> #3 AuthService.acceptInvite (package:knowby_pro/features/auth/state/auth_service.dart:368:27) <asynchronous suspension>
We are only able to get around this by adding a fake delay before calling the login method.
Reproduction
Additional context
No response
auth0_flutter version
1.7.2
Flutter version
3.22.0
Platform
iOS
Platform version(s)
iOS 17.5
The text was updated successfully, but these errors were encountered: