feat: refresh token when page is reloaded

This commit is contained in:
2026-07-14 22:45:55 +02:00
parent cd7bc8427f
commit e1928f7af9
4 changed files with 52 additions and 2 deletions
+4 -1
View File
@@ -22,8 +22,11 @@ function print(){
window.print()
}
onMounted(() => {
onMounted(async () => {
Auth.checkForToken()
if (Auth.getToken()) {
await Auth.refreshToken()
}
})
LoginService.subject.subscribe(() => {