Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Last active January 12, 2020 11:10
Show Gist options
  • Select an option

  • Save bezysoftware/6aa03e551b36d838251c8131b19b217d to your computer and use it in GitHub Desktop.

Select an option

Save bezysoftware/6aa03e551b36d838251c8131b19b217d to your computer and use it in GitHub Desktop.
Configure and initialize FirebaseAuthClient
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