We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27e496e + a26beff commit 94765d5Copy full SHA for 94765d5
src/pages/Logout/Logout.js
@@ -83,8 +83,10 @@ class Logout extends React.Component {
83
// We remove the client-id used for last login
84
localStorage.removeItem('client-id');
85
86
- Auth.signOut(); // Sign the user out
87
- window.location.reload(); // Reload the page to handle the client redirect
+ // Sign the user out
+ Auth.signOut().then(() => {
88
+ window.location.reload(); // Reload the page to handle the client redirect
89
+ });
90
}
91
92
0 commit comments