mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[auth] Support email link in checkActionCode
This commit is contained in:
@@ -1023,6 +1023,9 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
|
||||
case ActionCodeResult.PASSWORD_RESET:
|
||||
actionType = "PASSWORD_RESET";
|
||||
break;
|
||||
case ActionCodeResult.SIGN_IN_WITH_EMAIL_LINK:
|
||||
actionType = "EMAIL_SIGNING";
|
||||
break;
|
||||
}
|
||||
|
||||
writableMap.putString("actionType", actionType);
|
||||
|
||||
@@ -680,6 +680,9 @@ RCT_EXPORT_METHOD(checkActionCode:
|
||||
case FIRActionCodeOperationRecoverEmail:
|
||||
actionType = @"RECOVER_EMAIL";
|
||||
break;
|
||||
case FIRActionCodeOperationEmailLink:
|
||||
actionType = @"EMAIL_SIGNIN";
|
||||
break;
|
||||
}
|
||||
|
||||
NSDictionary *result = @{@"data": @{@"email": [info dataForKey:FIRActionCodeEmailKey], @"fromEmail": [info dataForKey:FIRActionCodeFromEmailKey],}, @"actionType": actionType,};
|
||||
|
||||
Reference in New Issue
Block a user