Clear Cookies before login in with SSO (#1984)
This commit is contained in:
parent
58eb1935b1
commit
c7807d910a
1 changed files with 7 additions and 3 deletions
|
|
@ -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/>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue