Skip to content

Commit 1474822

Browse files
JacobHayeshiranya911
authored andcommitted
Fix emailAlreadyExists typo (#181)
1 parent f466a5d commit 1474822

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth/user_mgt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ func marshalCustomClaims(claims map[string]interface{}) (string, error) {
777777
// Error handlers.
778778

779779
const (
780-
emailAlredyExists = "email-already-exists"
780+
emailAlreadyExists = "email-already-exists"
781781
idTokenRevoked = "id-token-revoked"
782782
insufficientPermission = "insufficient-permission"
783783
phoneNumberAlreadyExists = "phone-number-already-exists"
@@ -789,7 +789,7 @@ const (
789789

790790
// IsEmailAlreadyExists checks if the given error was due to a duplicate email.
791791
func IsEmailAlreadyExists(err error) bool {
792-
return internal.HasErrorCode(err, emailAlredyExists)
792+
return internal.HasErrorCode(err, emailAlreadyExists)
793793
}
794794

795795
// IsIDTokenRevoked checks if the given error was due to a revoked ID token.
@@ -829,9 +829,9 @@ func IsUserNotFound(err error) bool {
829829

830830
var serverError = map[string]string{
831831
"CONFIGURATION_NOT_FOUND": projectNotFound,
832-
"DUPLICATE_EMAIL": emailAlredyExists,
832+
"DUPLICATE_EMAIL": emailAlreadyExists,
833833
"DUPLICATE_LOCAL_ID": uidAlreadyExists,
834-
"EMAIL_EXISTS": emailAlredyExists,
834+
"EMAIL_EXISTS": emailAlreadyExists,
835835
"INSUFFICIENT_PERMISSION": insufficientPermission,
836836
"PERMISSION_DENIED": insufficientPermission,
837837
"PHONE_NUMBER_EXISTS": phoneNumberAlreadyExists,

0 commit comments

Comments
 (0)