mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
Cognito user pools now word their refusals as AWS does, built in one place (CognitoErrors). Codes and statuses are unchanged. - An unknown user answers "User does not exist." on the admin and signed-in operations, and "Username/client id combination not found." on ForgotPassword, ConfirmForgotPassword, ConfirmSignUp and ResendConfirmationCode. - "Incorrect username or password.", "Invalid Access Token", "Invalid Refresh Token" and "Group not found.". - A missing app client answers "User pool client does not exist." on DescribeUserPoolClient and UpdateUserPoolClient, "User pool client <id> does not exist." elsewhere, and names the pool for another pool's client. The pool is checked before the client. - UpdateUserPool and CreateUserPoolClient on a missing pool answer with an empty message. - "Domain already exists.", RevokeToken's "Unsupported token type", the duplicate custom attribute message and the two MFA preference sentences. - AdminInitiateAuth answers "Auth flow not enabled for this client" for a disabled flow, refresh included. A client whose flows are only the legacy values still refreshes. Every by-id client lookup goes through describeUserPoolClient, and the in-pool check through one clientInPool.