LoginSignup
0
0

AWS Amplify + CognitoでOAuthParam not configuredを解決

Posted at

背景

AWSのドキュメントに従って、Amplify + Cognito(Google Provider追加)の環境をセットアップした。

ただ、今回cognitoの設定(別の方が作業した)をimportする形でAmplifyを構築した。
ドキュメント

問題

  1. reactのプロジェクトを普通に構築
  2. amplify pullで設定を取得、Amplify.configure()で設定を読み込む
  3. このステップでサンんプルコードを動かしてみたら、ログインボタンを押すと「OAuthParam not configured」エラーが出る

解決

結論、cognitoのアプリケーションクライアント設定にsignout urlが必要である
スクリーンショット 2023-12-08 12.03.26.png

再度、amplify pull, amplify pushしたら、無事ログインできた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0