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 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions