dertinfo / dertinfo-app

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
https://app.dertinfo.co.uk
GNU General Public License v3.0
0 stars 0 forks source link

feat: Add auto token refresh functionality to AuthService #10

Closed davidsmonkeys closed 3 months ago

davidsmonkeys commented 3 months ago

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: