Cognito Federated user logout


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

await Auth.signIn(, this.password);

And logout using:


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

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

But logout doesnt support using:


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

preguntada hace 2 años1382 visualizaciones
1 Respuesta

According to the documentation (here), you need to either redirect the user to the Cognito endpoint: GET or perform the GET yourself and then redirect to the correct sign-in location. The former is going to be easier.

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas