An Azure Static Web App wrapping an Angular client for capturing scores and score sheet images. It also feeds back results and sheets to groups and group members
This commit adds the auto token refresh functionality to the AuthService in order to automatically refresh the token when it is close to expiry. It also handles the case when the token has already expired by logging out the user. This improves the user experience by ensuring that they are always authenticated and their session remains active.
Fixes # (issue): #1
Type of change
Please delete options that are not relevant.
[X] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
We've tested the auth system but I have not waited the full hour for the refresh. I'll check for this while doing some full system tests once all workloads have been migrated & containerised
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
This commit adds the auto token refresh functionality to the
AuthService
in order to automatically refresh the token when it is close to expiry. It also handles the case when the token has already expired by logging out the user. This improves the user experience by ensuring that they are always authenticated and their session remains active.Fixes # (issue): #1
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
We've tested the auth system but I have not waited the full hour for the refresh. I'll check for this while doing some full system tests once all workloads have been migrated & containerised
Checklist: