OI-25 get users tab to load data from an endpoint rather than from a …#15
Merged
Conversation
…cookie that could potentially get stale
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…cookie that could potentially get stale
This pull request introduces a mechanism to automatically refresh the user's session when the app loads and exposes a new
refreshSessionmethod in the authentication store. It also improves how user information is accessed and displayed in theUserPagecomponent. These changes help ensure that user session data is current and that user names are displayed reactively.Session Management Improvements:
refreshSessionmethod touseTokensinauth.store.jsthat checks and updates the user's session by fetching fresh user data from the server, handling session expiration gracefully. (src/stores/auth.store.js, src/stores/auth.store.jsR146-R174)refreshSessionto ensure the user's session is up-to-date as soon as the app loads. (src/App.vue, src/App.vueR5-R12)User Data Handling:
UserPage.vue, now uses theuseTokensstore to access the current user and computes the user's name reactively for display purposes. (src/views/UserPage.vue, [1] [2]Dependency Management:
auth.store.jsclarifying that a circular dependency withapicalls.jsis safe due to usage patterns. (src/stores/auth.store.js, src/stores/auth.store.jsR21-R23)