|
|
@@ -3,9 +3,12 @@ import { route } from 'preact-router'; |
|
|
|
|
|
|
|
class WBSignOut extends Component {
|
|
|
|
componentDidMount() {
|
|
|
|
delete window.localStorage['arvHost'];
|
|
|
|
delete window.localStorage['arvToken'];
|
|
|
|
delete window.localStorage['currentUser'];
|
|
|
|
const { app } = this.props;
|
|
|
|
const keys = ['arvHost', 'arvToken', 'currentUser'];
|
|
|
|
for (let i = 0; i < keys.length; i++) {
|
|
|
|
delete app.state[keys[i]];
|
|
|
|
delete window.localStorage[keys[i]];
|
|
|
|
}
|
|
|
|
route('/sign-in');
|
|
|
|
}
|
|
|
|
|
|
|
|