Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Last active September 5, 2021 05:46
Show Gist options
  • Select an option

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

Select an option

Save bezysoftware/d44cbdb8cd8965f2ee3fa7945c627d4c to your computer and use it in GitHub Desktop.
// anonymous sign in
var user = await client.SignInAnonymouslyAsync();
// sign up or sign in with email and password
var userCredential = await client.CreateUserWithEmailAndPasswordAsync("email", "pwd", "Display Name");
var userCredential = await client.SignInWithEmailAndPasswordAsync("email", "pwd");
// sign in via provider specific AuthCredential
var credential = TwitterProvider.GetCredential("access_token", "oauth_token_secret");
var userCredential = await client.SignInWithCredentialAsync(credential);
// sign in via web browser redirect - navigate to given uri, monitor a redirect to
// your authdomain.firebaseapp.com/__/auth/handler
// and return the whole redirect uri back to the client;
// this method is actually used by FirebaseUI
var userCredential = await client.SignInWithRedirectAsync(provider, async uri =>
{
return await OpenBrowserAndWaitForRedirectToAuthDomain(uri);
});
@taphuong
Copy link
Copy Markdown

taphuong commented Sep 5, 2021

please help me!
How to login firebase authentication (not realtime database)
2021-09-05
Can you share 1 source code?
my email: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment