I found the example on github on how to upload images to Firebase, this has been referenced in a few posts here;
I took the relevant code and try to incorporate that in my “study-app”. Everything works fine when I set the authentication to Firebase to everyone read and write. However the default was only authenticated users could write.
How can I make sure that the person that is trying to upload the image is authenticated?
I have the token and Firebase userid stored in redux so I can get to this information.
The firebase configuration has been set in a separate file and is exported as firebase with the apiKey, authDomain, databaseURL and storageBucket set.
How and where can I send the token with this upload?