Skip to content
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

move navigation in hasSessionInProgress #271

Conversation

bogdan-niculescu-sch
Copy link
Collaborator

@bogdan-niculescu-sch bogdan-niculescu-sch commented Apr 3, 2024

If brands are adding Identity calls in either callback or on page load lifecycle, calls can happen in parallel, leading to some calls taking place without the correct cookies and leading to user logout.

Moving navigation to hasSessionInProgress to getSession().then seems to have fixed this problem

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (cc74052) to head (9da2310).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           feat/UUI-683/add-support-for-page-refresh      #271   +/-   ##
===========================================================================
  Coverage                                     100.00%   100.00%           
===========================================================================
  Files                                             14        14           
  Lines                                            640       641    +1     
  Branches                                         169       170    +1     
===========================================================================
+ Hits                                             640       641    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hunger-programmer hunger-programmer merged commit b17a705 into feat/UUI-683/add-support-for-page-refresh Apr 3, 2024
4 checks passed
@hunger-programmer hunger-programmer deleted the UUI-683-fix-parallel-calls branch April 3, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants