-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOPID-2566] Refactor AuthErrorComponent #6565
base: master
Are you sure you want to change the base?
Conversation
… params and move spid request states on redux
Jira Pull Request LinkThis Pull Request refers to the following Jira issue IOPID-2566 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6565 +/- ##
==========================================
- Coverage 49.29% 49.29% -0.01%
==========================================
Files 1555 1558 +3
Lines 32119 32153 +34
Branches 7312 7322 +10
==========================================
+ Hits 15834 15849 +15
- Misses 16236 16255 +19
Partials 49 49
Continue to review full report in Codecov by Sentry.
|
Short description
This PR removes the
onRetry
function from theAuthErrorScreen
navigation params in order to suppress the warning related to it. The retry logic is now handled in a dedicated redux reducer.Important
In the
ts/screens/authentication/IdpLoginScreen.tsx
component thenavigate
method has been replaced with thereplace
. This change gives us the possibility to skip theretryLollipopLogin
step because thereplace
unmounts the route and in a further navigation on thets/screens/authentication/IdpLoginScreen.tsx
theuseLollipopLoginSource
hook will be executed from start.List of changes proposed in this pull request
onRetry
from theAuthErrorScreen
navigation paramsisNativeLogin
param into theAuthErrorScreen
navigation paramsts/screens/authentication/IdpLoginScreen.tsx
andts/screens/authentication/idpAuthSessionHandler.tsx
retry logic in a dedicated redux reducernavigate
function with thereplace
function in thets/screens/authentication/IdpLoginScreen.tsx
Demo
iOS
Standard login
ios-standard-login-before.mp4
ios-standard-login-after.mp4
Native login
ios-native-login-before.mp4
ios-native-login-after.mp4
Android
Standard login
android-standard-login-before.mp4
android-standard-login-after.mp4
Native login
android-native-login-before.mp4
android-native-login-after.mp4
How to test
Replicate what is shown in the demos. By default, the standard login flow is enabled. To test the native login, ensure that the local feature flag is enabled in the environment variables and that the remote one is enabled on the dev-server.