LoginSignup
60
27

More than 5 years have passed since last update.

AWS Cognito User Pools のサインアップ時に NotAuthorizedException が出る (JavaScript)

Posted at

現象

User Pool を作成した後に、aws/amazon-cognito-identity-js の Usage1を参考にサインアップしようとしたところ、下記のエラーが出て失敗してしまいました。

NotAuthorizedException:Unable to verify secret hash for client ***

(*** は Client ID)

解決策

ばっちりのケースがありました。
AWS Cognito Identity NotAuthorizedException

JavaScriptで実装する場合、secret key を使わない設定にする必要があったみたいです。

User Pools > Apps でキーを作り直します。Add another appをクリックして、今度は Generate client secret のチェックを外して作成します。

ss.png

60
27
2

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
60
27