@@ -777,7 +777,7 @@ func marshalCustomClaims(claims map[string]interface{}) (string, error) {
777777// Error handlers.
778778
779779const (
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.
791791func 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
830830var 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