MCPcopy Index your code
hub / github.com/NativeScript/firebase / toUserCredential

Function toUserCredential

packages/firebase-auth/index.ios.ts:530–547  ·  view source on GitHub ↗
(authData: FIRAuthDataResult)

Source from the content-addressed store, hash-verified

528}
529
530function 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
549export class ActionCodeSettings implements IActionCodeSettings {
550 _native: FIRActionCodeSettings;

Callers 10

linkWithCredentialMethod · 0.70
signInAnonymouslyMethod · 0.70
signInWithProviderMethod · 0.70
signInWithCredentialMethod · 0.70
signInWithCustomTokenMethod · 0.70
signInWithEmailLinkMethod · 0.70

Calls 2

deserializeFunction · 0.90
fromNativeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…