Repository navigation
[Customer Portal][FE][Web] fix: Auth UX – idle timeout, token refresh error handling, upload cleanup #158
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
Merged
Rashmika998
merged 32 commits into
wso2-open-operations:customer-portal-milestone-1
from
dileepapeiris:fix/m1-auth-issues
Feb 16, 2026
Merged
[Customer Portal][FE][Web] fix: Auth UX – idle timeout, token refresh error handling, upload cleanup #158
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e7a4b25
Add react-idle-timer dependency
dileepapeiris cbee98c
Mock AuthApiContext in vitest setup
dileepapeiris 8f9e3e9
Wrap AppLayout with IdleTimeoutProvider
dileepapeiris 460b68d
Add React import and update test mocks
dileepapeiris ffd7148
Add IdleTimeoutProvider for session warnings
dileepapeiris d89c492
Remove BackgroundTokenRefresh component
dileepapeiris e67c90f
Add authenticatedFetch utility for API calls
dileepapeiris 348c81a
Add AuthApiContext provider and hook
dileepapeiris 7a45efb
Add SessionWarningDialog component
dileepapeiris 9fbeee3
Use auth API client in case hooks
dileepapeiris 4558298
Use auth API client for backend fetches
dileepapeiris cc5a32d
Use auth API client for fetches
dileepapeiris 2babfa9
Use auth api client fetchFn for API calls
dileepapeiris db8bf81
Use auth API client for project stats fetch
dileepapeiris d673abf
Use auth API client in project API hooks
dileepapeiris 78c800e
Use auth API client in project hooks
dileepapeiris 28077af
Use auth API client for fetch requests
dileepapeiris 93ae5ee
Use auth API client for project APIs
dileepapeiris c85ae3d
Use AuthApiClient for authenticated fetch
dileepapeiris 883ce5a
Use AuthApiContext fetch client for project stats
dileepapeiris e6c6304
Use AuthApiContext client for POST requests
dileepapeiris e8d605d
Wrap app providers with AuthApiProvider
dileepapeiris a464ce9
Add authConstants for idle timeout
dileepapeiris fd5f284
Add silent sign-in recovery to authenticatedFetch
dileepapeiris 6ad9d95
Add silent sign-in support to AuthApiContext
dileepapeiris f8c2e01
Move navigation after attachment upload finishes
dileepapeiris c4dbab2
Use mockImplementation for useAuthApiClient mock
dileepapeiris de2e80f
Await signOut; preserve refresh error; mock auth
dileepapeiris 1932d7b
Sign out and redirect on idle
dileepapeiris 83f52c0
Always navigate after signOut; safer HTML parsing
dileepapeiris 4734859
Sanitize image URLs, guard toolbar, add cancel
dileepapeiris a6c7169
Merge branch 'customer-portal-milestone-1' into fix/m1-auth-issues
dileepapeiris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.