mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 14:06:10 +00:00
strip token from URL if auth fails
This commit is contained in:
parent
d02d2f1522
commit
8d40c04107
@ -70,6 +70,12 @@ class AppContainer extends Component {
|
||||
this.props.authenticate(this.props.credentials.host, this.props.credentials.token);
|
||||
}
|
||||
|
||||
if (this.getQueryToken() &&
|
||||
!this.props.credentials.authenticated &&
|
||||
!this.props.credentials.authenticating) {
|
||||
this.props.history.replace(this.stripQueryToken(this.props.location));
|
||||
}
|
||||
|
||||
if (this.getQueryToken() && this.props.credentials.authenticated) {
|
||||
this.props.history.replace(this.stripQueryToken(this.props.location));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user