Why does cognito throw ErrCodeNotAuthorizedException "NotAuthorizedException"
when the status of the user is already confirmed when making a request to cognito to confirm the user.
The documentation specifies that ErrCodeNotAuthorizedException
is thrown when a user is not authorized.
How should we handle this case? As it would be unclear if we made a request with invalid client secret
as it would throw the same error.