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回答
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
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン