bugthesystem / FireSharp

An asynchronous cross-platform .Net library for Firebase
The Unlicense
693 stars 147 forks source link

Request responded with status code=BadRequest, response={ "error" : "Could not parse auth token." } #73

Closed walaa118 closed 7 years ago

walaa118 commented 7 years ago

when i try to use firebase notification :

IFirebaseConfig config = new FirebaseConfig { AuthSecret = "your_firebase_secret", BasePath = "https://yourfirebase.firebaseio.com/" };

what is the AuthSecret ?!

is it any setting need in the application console.firebase?

qqc commented 7 years ago

The legacy AuthSecret method is hidden inside the Project Settings in the new Firebase Console under the label Database Secrets. In order to find out your AuthSecret, you'll need to navigate to Project Settings by pressing the cog icon in the sidebar, and then going to the Database tab. Either use the existing secret, or create a new one, and press the button to reveal it. Put this in your FirebaseConfig and everything should be good to go.

capture

alberthoekstra commented 7 years ago

Doesnt work for me, i cant find the database secrest in the Firebase console. Edit: I found it! You have to go to the Cog icon -> Project Settings -> Service accounts -> Databasesecrets.