RedHatInsights / insights-chrome

Chroming for Insights apps
MIT License
27 stars 130 forks source link

Relog user after JWT token expired. #2874

Closed Hyperkid123 closed 2 months ago

Hyperkid123 commented 2 months ago

Ticket: https://issues.redhat.com/browse/RHCLOUD-32759

Triggers a login if a response failed authentication.

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 63.07%. Comparing base (d17fb3d) to head (145236c).

:exclamation: Current head 145236c differs from pull request most recent head 28987ee

Please upload reports for the commit 28987ee to get more accurate results.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874/graphs/tree.svg?width=650&height=150&src=pr&token=GuRwyW1uUf&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights)](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights) ```diff @@ Coverage Diff @@ ## master #2874 +/- ## ========================================== - Coverage 63.09% 63.07% -0.02% ========================================== Files 210 210 Lines 4644 4650 +6 Branches 914 859 -55 ========================================== + Hits 2930 2933 +3 - Misses 1667 1705 +38 + Partials 47 12 -35 ``` | [Files](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights) | Coverage Δ | | |---|---|---| | [...mponents/ErrorComponents/DefaultErrorComponent.tsx](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874?src=pr&el=tree&filepath=src%2Fcomponents%2FErrorComponents%2FDefaultErrorComponent.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights#diff-c3JjL2NvbXBvbmVudHMvRXJyb3JDb21wb25lbnRzL0RlZmF1bHRFcnJvckNvbXBvbmVudC50c3g=) | `3.70% <0.00%> (ø)` | | | [src/utils/iqeEnablement.ts](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874?src=pr&el=tree&filepath=src%2Futils%2FiqeEnablement.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights#diff-c3JjL3V0aWxzL2lxZUVuYWJsZW1lbnQudHM=) | `69.60% <50.00%> (ø)` | | | [src/utils/responseInterceptors.ts](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874?src=pr&el=tree&filepath=src%2Futils%2FresponseInterceptors.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights#diff-c3JjL3V0aWxzL3Jlc3BvbnNlSW50ZXJjZXB0b3JzLnRz) | `86.95% <57.14%> (-13.05%)` | :arrow_down: | ... and [19 files with indirect coverage changes](https://app.codecov.io/gh/RedHatInsights/insights-chrome/pull/2874/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights)