Cognito Federated user logout

0

For cognito user - Using Amplify I was able to login using

await Auth.signIn(this.email, this.password);

And logout using:

Auth.signOut();

For federated user - Using Amplify I was able to login using

await Auth.federatedSignIn({ customProvider: 'customProviderName' });

But logout doesnt support using:

Auth.signOut();

How can I signout federated user, so that when I try to login again, it ask my permission to login ?

1 Resposta
0

According to the documentation (here), you need to either redirect the user to the Cognito endpoint: GET https://mydomain.auth.us-east-1.amazoncognito.com/logout or perform the GET yourself and then redirect to the correct sign-in location. The former is going to be easier.

AWS
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas