Clear Cookies before login in with SSO (#1984)

This commit is contained in:
Elias Nahum 2018-08-08 12:53:44 -04:00 committed by GitHub
parent 58eb1935b1
commit c7807d910a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,10 +94,14 @@ class SSO extends PureComponent {
}
componentDidMount() {
InteractionManager.runAfterInteractions(() => {
InteractionManager.runAfterInteractions(this.clearPreviousCookies);
}
clearPreviousCookies = () => {
CookieManager.clearAll().then(() => {
this.setState({renderWebView: true});
});
}
};
goToLoadTeam = (expiresAt) => {
const {intl, navigator} = this.props;
@ -197,7 +201,7 @@ class SSO extends PureComponent {
onLoadEndError = (e) => {
console.warn('Failed to set store from local data', e); // eslint-disable-line no-console
this.setState({error: e.message});
}
};
renderLoading = () => {
return <Loading/>;