Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ export class AppStarter {

this._authService
.getLoggedInUser()
.catch()
.catch( (/** @type {import(axios).AxiosError} */ error) => {
if (error.response.status == 401) {
console.log(error.response.message)
// TODO propagate the response message
window.location.href = "/login";
}
}
)
.finally(() => {
this._eventService.app = new Vue({
el: '#app',
Expand Down