So, my code was not using the login token to login.
I am running on Cloudflare, so I imagine this would be the same problem in Vercel Edge, NextJS Middleware, etc.
Is this due to a fetch problem?
J
Steps and code to reproduce issue
Here is my REPO. You could clone it and use it with any Firestore instance with open rules. Just configure the .env file. It would need to be deployed to an edge environment.
Operating System
n/a
Browser Version
n/a
Firebase SDK Version
10.12.3
Firebase SDK Product:
Auth
Describe your project's tooling
SvelteKit with Firebase - https://code.build/p/sveltekit-todo-app-with-firebase-C73xaa
Describe the problem
While running this function on a fresh login with a new token:
I get this error on my server logs:
I thought everything was working with: https://github.com/firebase/firebase-js-sdk/issues/8299 Because I didn't get a compile error, but I didn't actually run these two lines:
So, my code was not using the login token to login.
I am running on Cloudflare, so I imagine this would be the same problem in Vercel Edge, NextJS Middleware, etc.
Is this due to a
fetch
problem?J
Steps and code to reproduce issue
Here is my REPO. You could clone it and use it with any Firestore instance with open rules. Just configure the
.env
file. It would need to be deployed to an edge environment.https://github.com/jdgamble555/sveltekit-firebase-deploy