public async Task UseAfterDelete()
        {
            var app = FirebaseApp.Create(new AppOptions()
            {
                Credential = mockCredential
            });
            FirebaseAuth auth = FirebaseAuth.DefaultInstance;

            app.Delete();
            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.CreateCustomTokenAsync("user"));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.VerifyIdTokenAsync("user"));
        }
Exemple #2
0
        public async Task UseAfterDelete()
        {
            var app = FirebaseApp.Create(new AppOptions()
            {
                Credential = MockCredential
            });
            FirebaseAuth auth = FirebaseAuth.DefaultInstance;

            app.Delete();
            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.CreateCustomTokenAsync("user"));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.VerifyIdTokenAsync("user"));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.SetCustomUserClaimsAsync("user", null));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.GetOidcProviderConfigAsync("oidc.provider"));
        }