0
0

【AWS】CognitoのForgotPassword API実行時、UserNotFoundExceptionがスローされない

Posted at

原因

「ユーザー存在エラーの防止」が有効化されているため。

スクリーンショット 2024-07-20 213630.png

解決方法

「アプリケーションクライアントに関する情報」から「編集」を押下し、下記のチェックボックスのチェックを外す。

スクリーンショット 2024-07-20 214009.png

動作確認

存在しないユーザーを指定して ForgotPassword API を実行した場合、下記の例外がスローされた。

UserNotFoundException: Username/client id combination not found.

参考

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