i have a url-shortener without users logging in. I cannot write to firestore from the Vue client because the firestore rules need a user logged in. I can also not use the firebase-admin because the code runs on the client. So, now i am trying a cloud function as an API relay.
But you can authenticate using an anonymous login(it is available on firebase), so, you can login user using token generates from the client without having username or password.
i have a url-shortener without users logging in. I cannot write to firestore from the Vue client because the firestore rules need a user logged in. I can also not use the firebase-admin because the code runs on the client. So, now i am trying a cloud function as an API relay.
But you can authenticate using an anonymous login(it is available on firebase), so, you can login user using token generates from the client without having username or password.
HI Levi, Thanks for the tip, i will look into that!