@@ -777,7 +777,7 @@ func marshalCustomClaims(claims map[string]interface{}) (string, error) {
777
777
// Error handlers.
778
778
779
779
const (
780
- emailAlredyExists = "email-already-exists"
780
+ emailAlreadyExists = "email-already-exists"
781
781
idTokenRevoked = "id-token-revoked"
782
782
insufficientPermission = "insufficient-permission"
783
783
phoneNumberAlreadyExists = "phone-number-already-exists"
@@ -789,7 +789,7 @@ const (
789
789
790
790
// IsEmailAlreadyExists checks if the given error was due to a duplicate email.
791
791
func IsEmailAlreadyExists (err error ) bool {
792
- return internal .HasErrorCode (err , emailAlredyExists )
792
+ return internal .HasErrorCode (err , emailAlreadyExists )
793
793
}
794
794
795
795
// IsIDTokenRevoked checks if the given error was due to a revoked ID token.
@@ -829,9 +829,9 @@ func IsUserNotFound(err error) bool {
829
829
830
830
var serverError = map [string ]string {
831
831
"CONFIGURATION_NOT_FOUND" : projectNotFound ,
832
- "DUPLICATE_EMAIL" : emailAlredyExists ,
832
+ "DUPLICATE_EMAIL" : emailAlreadyExists ,
833
833
"DUPLICATE_LOCAL_ID" : uidAlreadyExists ,
834
- "EMAIL_EXISTS" : emailAlredyExists ,
834
+ "EMAIL_EXISTS" : emailAlreadyExists ,
835
835
"INSUFFICIENT_PERMISSION" : insufficientPermission ,
836
836
"PERMISSION_DENIED" : insufficientPermission ,
837
837
"PHONE_NUMBER_EXISTS" : phoneNumberAlreadyExists ,
0 commit comments