Skip to content

OI-25 get users tab to load data from an endpoint rather than from a …#15

Merged
sedv8808 merged 1 commit into
devfrom
authedfetch/dev
May 26, 2026
Merged

OI-25 get users tab to load data from an endpoint rather than from a …#15
sedv8808 merged 1 commit into
devfrom
authedfetch/dev

Conversation

@sedv8808

Copy link
Copy Markdown
Contributor

…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 refreshSession method in the authentication store. It also improves how user information is accessed and displayed in the UserPage component. These changes help ensure that user session data is current and that user names are displayed reactively.

Session Management Improvements:

  • Added a refreshSession method to useTokens in auth.store.js that 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)
  • On app mount, automatically calls refreshSession to 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:

  • In UserPage.vue, now uses the useTokens store to access the current user and computes the user's name reactively for display purposes. (src/views/UserPage.vue, [1] [2]

Dependency Management:

  • Added an import note in auth.store.js clarifying that a circular dependency with apicalls.js is safe due to usage patterns. (src/stores/auth.store.js, src/stores/auth.store.jsR21-R23)

Copilot AI review requested due to automatic review settings May 26, 2026 16:46
@sedv8808 sedv8808 merged commit 197e1db into dev May 26, 2026
1 of 2 checks passed
@sedv8808 sedv8808 removed the request for review from Copilot May 26, 2026 17:07
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.

1 participant