AWS Cognito with a frontend: 'NotAuthorizedException: Unable to verify secret hash for client'
@devsingh05▲ 4 net votes
The app client was created with a client secret, which browser and mobile apps cannot keep secret, and Amplify and most frontend SDKs do not compute the SECRET_HASH. Create a new app client without a secret for public clients (secrets cannot be removed from an existing client). Server-side code that keeps a secret must send SECRET_HASH computed from username, client id and secret.