feat: refresh token when page is reloaded
This commit is contained in:
+4
-1
@@ -22,8 +22,11 @@ function print(){
|
||||
window.print()
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
Auth.checkForToken()
|
||||
if (Auth.getToken()) {
|
||||
await Auth.refreshToken()
|
||||
}
|
||||
})
|
||||
|
||||
LoginService.subject.subscribe(() => {
|
||||
|
||||
Reference in New Issue
Block a user