Last active
September 5, 2021 05:46
-
-
Save bezysoftware/d44cbdb8cd8965f2ee3fa7945c627d4c to your computer and use it in GitHub Desktop.
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
| // 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); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please help me!

How to login firebase authentication (not realtime database)
Can you share 1 source code?
my email: [email protected]