My application uses G-Suite with AWS Cognito in order to authenticate users. At the first sign in, if the user has no profiles (which is configured by a devops team), it will receive a 403 page with a logout button. What I want is: when the user clicks the button and is redirected back to the login page, on the next login attempt AWS should ask AGAIN with which e-mail the user would like to use. Right now, after the logOut, the next signIn attempt will automatically use the previous e-mail.
I looked everywhere into the documentation, and Auth.signOut has only a global option, nothing about e-mail choosing.
My button is fairly dummy. This is the code inside it:
async function logOut() {
localStorage.clear()
await Auth.signOut();
}
I tried removing the async/await, tried logging .then() and .catch(), but got nothing.