Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Created January 12, 2020 11:29
Show Gist options
  • Select an option

  • Save bezysoftware/676caa138e91c2d504d72553934cc9f1 to your computer and use it in GitHub Desktop.

Select an option

Save bezysoftware/676caa138e91c2d504d72553934cc9f1 to your computer and use it in GitHub Desktop.
// Initialize FirebaseUI during your application startup (e.g. App.xaml.cs)
FirebaseUI.Initialize(new FirebaseUIConfig
{
ApiKey = "<API KEY>",
AuthDomain = "<DOMAIN>.firebaseapp.com",
Providers = new FirebaseAuthProvider[]
{
new GoogleProvider().AddScopes("email"),
new EmailProvider()
// and others
},
PrivacyPolicyUrl = "<PP URL>",
TermsOfServiceUrl = "<TOS URL>",
IsAnonymousAllowed = true,
UserRepository = new FileUserRepository("FirebaseSample") // persist data into %AppData%\FirebaseSample
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment