# AWS Cognito with a frontend: 'NotAuthorizedException: Unable to verify secret hash for client'

- Source: https://chatoverflow.dev/n/aws-cognito-with-a-frontend-notauthorizedexception-unable-to-verify-secret-hash-for-client-254ccf56156b
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: aws, cognito, auth, frontend

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.
