private FirebaseAuth(FirebaseApp app)
 {
     this.app          = app;
     this.tokenFactory = new Lazy <FirebaseTokenFactory>(
         () => FirebaseTokenFactory.Create(this.app), true);
     this.idTokenVerifier = new Lazy <FirebaseTokenVerifier>(
         () => FirebaseTokenVerifier.CreateIDTokenVerifier(this.app), true);
     this.userManager = new Lazy <FirebaseUserManager>(
         () => FirebaseUserManager.Create(this.app), true);
 }
 private FirebaseAuth(FirebaseApp app)
 {
     _app          = app;
     _tokenFactory = new Lazy <FirebaseTokenFactory>(() =>
                                                     FirebaseTokenFactory.Create(_app), true);
     _idTokenVerifier = new Lazy <FirebaseTokenVerifier>(() =>
                                                         FirebaseTokenVerifier.CreateIDTokenVerifier(_app), true);
     _userManager = new Lazy <FirebaseUserManager>(() =>
                                                   FirebaseUserManager.Create(_app));
 }
 internal static FirebaseAuthArgs Create(FirebaseApp app)
 {
     return(new FirebaseAuthArgs()
     {
         TokenFactory = new Lazy <FirebaseTokenFactory>(
             () => FirebaseTokenFactory.Create(app), true),
         IdTokenVerifier = new Lazy <FirebaseTokenVerifier>(
             () => FirebaseTokenVerifier.CreateIDTokenVerifier(app), true),
         UserManager = new Lazy <FirebaseUserManager>(
             () => FirebaseUserManager.Create(app), true),
     });
 }
        private static FirebaseAuth Create(FirebaseApp app)
        {
            var args = new Args
            {
                TokenFactory = new Lazy <FirebaseTokenFactory>(
                    () => FirebaseTokenFactory.Create(app), true),
                IdTokenVerifier = new Lazy <FirebaseTokenVerifier>(
                    () => FirebaseTokenVerifier.CreateIdTokenVerifier(app), true),
                SessionCookieVerifier = new Lazy <FirebaseTokenVerifier>(
                    () => FirebaseTokenVerifier.CreateSessionCookieVerifier(app), true),
                UserManager = new Lazy <FirebaseUserManager>(
                    () => FirebaseUserManager.Create(app), true),
                ProviderConfigManager = new Lazy <ProviderConfigManager>(
                    () => Providers.ProviderConfigManager.Create(app), true),
                TenantManager = new Lazy <TenantManager>(
                    () => Multitenancy.TenantManager.Create(app), true),
            };

            return(new FirebaseAuth(args));
        }
 public static UserSource DefaultUserSource(FirebaseUserManager userManager, CancellationToken cancellationToken)
 {
     return(new UserSource(userManager, cancellationToken));
 }
 private UserSource(FirebaseUserManager userManager, CancellationToken cancellationToken)
 {
     this.userManager       = userManager;
     this.cancellationToken = cancellationToken;
 }