(authData: FIRAuthDataResult)
| 528 | } |
| 529 | |
| 530 | function toUserCredential(authData: FIRAuthDataResult): IUserCredential { |
| 531 | const result = { |
| 532 | additionalUserInfo: null, |
| 533 | user: User.fromNative(authData.user), |
| 534 | credential: authData.credential instanceof FIROAuthCredential ? OAuthCredential.fromNative(authData.credential) : AuthCredential.fromNative(authData.credential), |
| 535 | }; |
| 536 | |
| 537 | if (authData?.additionalUserInfo) { |
| 538 | result.additionalUserInfo = { |
| 539 | newUser: authData?.additionalUserInfo?.newUser, |
| 540 | providerId: authData?.additionalUserInfo?.providerID, |
| 541 | username: authData?.additionalUserInfo?.username, |
| 542 | profile: deserialize(authData?.additionalUserInfo?.profile), |
| 543 | }; |
| 544 | } |
| 545 | |
| 546 | return result; |
| 547 | } |
| 548 | |
| 549 | export class ActionCodeSettings implements IActionCodeSettings { |
| 550 | _native: FIRActionCodeSettings; |
no test coverage detected
searching dependent graphs…