Show error "Invalid JWT token".

This commit is contained in:
Yang Luo
2021-05-15 23:34:06 +08:00
parent 55e0fe14ca
commit df7ac93feb
2 changed files with 18 additions and 1 deletions

View File

@ -128,6 +128,10 @@ class App extends Component {
if (res.status === "ok") {
account = res.data;
account.organization = res.data2;
} else {
if (res.msg === "Invalid JWT token") {
Setting.showMessage("error", `Failed to sign in: ${res.msg}`);
}
}
this.setState({