Skip to content

Commit 94b7181

Browse files
author
elorzafe
authored
Reverting custom message for InvalidParameterException on signUp (#4202)
fixes: #4175
1 parent 0269812 commit 94b7181

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/auth/src/Auth.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,6 @@ export default class AuthClass {
296296
validationData,
297297
(err, data) => {
298298
if (err) {
299-
if (err.code === 'InvalidParameterException') {
300-
err.message =
301-
'Username could not be created. Please make sure that the username you have entered is between 1 and 128 characters.';
302-
}
303299
dispatchAuthEvent(
304300
'signUp_failure',
305301
err,

0 commit comments

Comments
 (0)