[NotAuthorizedException: Token is not from a supported provider of this identity pool.] error when trying to use fetchUserAttributes and getAuthSession.

0

I am working with React native and AWS Amplify. Our website uses Amplify v5 whereas I am using Amplify v6 in the app, but used the same config file. SignIn, SignOut steps are working correctly along with getCurrentUser API from 'aws-amplify/auth' package. But fetchUserAttributes and fetchCurrentSession are giving ' [NotAuthorizedException: Token is not from a supported provider of this identity pool.] ' error. Our website as working on Amplify v5 uses Auth.currentAuthenticatedUser(), Auth.currentSession() which work perfectly fine. What is wrong here ? Any help

Puneet
質問済み 4ヶ月前87ビュー
回答なし

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

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

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

関連するコンテンツ