Problem using SignInWithEmailAndPassword
See original GitHub issueJust starting with Firebase, and discovered your posts and libraries. When i have my rules set to anonymous access (write and read), i can post to the database.
When i try with a email login, i always get the error: { “error” : “Could not parse auth token.” } auth.user shows the correct email and Id.
This is the code i’m using:
var firebase = new FirebaseClient(databaseUrl);
var authProvider = new FirebaseAuthProvider(new FirebaseConfig(apiKey));
var auth = await authProvider.SignInWithEmailAndPasswordAsync( xxxx , yyyy );
var db = firebase
.Child("SanPrg2")
.WithAuth( auth.FirebaseToken );
var d = new Dinosaur { Height = 20 };
await db.PostAsync(d);
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
facing problems with firebase signInWithEmailAndPassword
1 Answer 1 ... You have to import the initialized app from your firebase.js file and use getAuth(app) to start using authentication. Instead...
Read more >[firebase_auth] signInWithEmailAndPassword returns error ...
This refactor addresses a bug where signInWithEmailAndPassword was returning an error code as "unknown" (GitHub issue: firebase/flutterfire/ ...
Read more >signInWithEmailAndPassword never resolves nor reject
Exactly. But i think signInWithEmailAndPassword need to be imported from firebase/auth. It seems than signInWithEmailAndPassword stuck in an " ...
Read more >Authenticate with Firebase using Password-Based ... - Google
You can use Firebase Authentication to let your users authenticate with Firebase using their email addresses and passwords, and to manage your app's ......
Read more >Authenticate with Firebase using Password-Based Accounts ...
You can use Firebase Authentication to let your users authenticate with Firebase using their email addresses and passwords, and to manage your app's ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joanlopez
try this:
var account = new Accounts();
The extra parameter(generate key offline) in the PostAsync method solved the issue. I guess when the key is generated offline, it would make the request URL very large and the HTTP request handler will not be handle that.
Finally it worked for me!
Thanks!
PD: Sorry for replying on an replicated issue