Skip to content

Commit 95c1279

Browse files
bhawesh96gitmate-bot
authored andcommitted
nav.jsx: Handle invalid token
Logout and show the login-modal if the token is invalid
1 parent 90f7322 commit 95c1279

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/app/nav.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class AppNav extends Component {
6363
// }
6464
this.setState({info});
6565
}).catch(() => {
66-
this.setState({info: null});
66+
alert("Invalid user token");
67+
this.onSignOut();
68+
this.setState({info: null, showModal: true});
6769
});
6870
};
6971

0 commit comments

Comments
 (0)