Skip to content

Commit dfa740c

Browse files
Yue-Wang-GoogleChuan Ren
authored andcommitted
Fix a bug where request string for VerifyBeforeUpdateEmail is set inc… (#2932)
* Fix a bug where request string for VerifyBeforeUpdateEmail is set incorrectly * change VERIFY_AND_CHANGE_EMAIL request type name
1 parent dbb1058 commit dfa740c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firebase/Auth/Source/Backend/RPC/FIRGetOOBConfirmationCodeRequest.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@
102102
static NSString *const kVerifyEmailRequestTypeValue = @"VERIFY_EMAIL";
103103

104104
/** @var kVerifyBeforeUpdateEmailRequestTypeValue
105-
@brief The value for the "VERIFY_BEFORE_UPDATE_EMAIL" request type.
105+
@brief The value for the "VERIFY_AND_CHANGE_EMAIL" request type.
106106
*/
107-
static NSString *const kVerifyBeforeUpdateEmailRequestTypeValue = @"VERIFY_BEFORE_UPDATE_EMAIL";
107+
static NSString *const kVerifyBeforeUpdateEmailRequestTypeValue = @"VERIFY_AND_CHANGE_EMAIL";
108108

109109
@interface FIRGetOOBConfirmationCodeRequest ()
110110

@@ -143,7 +143,7 @@ + (NSString *)requestTypeStringValueForRequestType:
143143
case FIRGetOOBConfirmationCodeRequestTypeEmailLink:
144144
return kEmailLinkSignInTypeValue;
145145
case FIRGetOOBConfirmationCodeRequestTypeVerifyBeforeUpdateEmail:
146-
return kVerifyEmailRequestTypeValue;
146+
return kVerifyBeforeUpdateEmailRequestTypeValue;
147147
// No default case so that we get a compiler warning if a new value was added to the enum.
148148
}
149149
}

0 commit comments

Comments
 (0)