Skip to content

Commit cd1b558

Browse files
committed
nav.jsx: Handle invalid token
Logout and show the login-modal if the token is invalid
1 parent 9839307 commit cd1b558

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/app/nav.jsx

+3-1
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)