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

fix(oidc): record tabIds when service worker receives init event (release) #1423

Merged

Conversation

krzempekk
Copy link
Contributor

Fix from #1402 has one issue - if allowMultiTabLogin flag is true and second tab is opened (when first tab is already authenticated), trying to initiate token renewal (using refresh token) from second tab fails. This is because previously tabId was saved to database only when login flow was initiated from given tab. This fix adds registering of tab id each time service worker receives init event.

A picture tells a thousand words

Before this PR

After this PR

@krzempekk
Copy link
Contributor Author

@guillaume-chervet could you take a look? This is follow-up for #1402

Copy link
Contributor

@guillaume-chervet guillaume-chervet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @krzempekk

@guillaume-chervet guillaume-chervet merged commit 05ace2d into AxaFrance:main Jul 22, 2024
13 checks passed
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