Last active
January 12, 2020 11:10
-
-
Save bezysoftware/6aa03e551b36d838251c8131b19b217d to your computer and use it in GitHub Desktop.
Configure and initialize FirebaseAuthClient
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Firebase.Auth; | |
| using Firebase.Auth.Providers; | |
| using Firebase.Auth.Repository; | |
| // Configure... | |
| var config = new FirebaseAuthConfig | |
| { | |
| ApiKey = "<API KEY>", | |
| AuthDomain = "<DOMAIN>.firebaseapp.com", | |
| Providers = new FirebaseAuthProvider[] | |
| { | |
| // Add and configure individual providers | |
| new GoogleProvider().AddScopes("email"), | |
| new EmailProvider() | |
| // ... | |
| }, | |
| UserRepository = new FileUserRepository("FirebaseSample") | |
| }; | |
| // ...and create your FirebaseAuthClient | |
| var client = new FirebaseAuthClient(config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment