-
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
chore: [IOPID-2051] Add logic to refresh session after 2 minutes of background #6082
Conversation
Affected stories
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6082 +/- ##
==========================================
- Coverage 48.42% 47.78% -0.65%
==========================================
Files 1488 1714 +226
Lines 31617 34372 +2755
Branches 7669 8243 +574
==========================================
+ Hits 15311 16423 +1112
- Misses 16238 17888 +1650
+ Partials 68 61 -7
... and 1160 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
ts/sagas/startup/refreshSessionTokenAfterTwoMinBackgroundSaga.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
List of changes proposed in this pull request
Demo
Note
in order to speed up the testing process I replaced the
backgroundActivityTimeout
field with 10 so that the functionality is activated after 10 seconds of background and not after 2 minutesExample.Local.Session.Refresh.mov
Example.Local.Payment.Session.Refresh.mov
Example.Production.Session.Refresh.mov
How to test
NB: in order to speed up the testing process at this line you can replace the
backgroundActivityTimeout
const with '10' so that the functionality is activated after 10 seconds of background and not after 2 minutesRun the application and put the application in the background for at least 2 minutes. When you put it back in foreground the application will be shown the screen to identify you and the token will be refreshed