Comments (7)
This issue should be marked as solved, because the file in question no longer exists and indeed it seems that they implemented the auth token parsing using the __session
cookie:
However, as a couple of the more recent comments indicate, the __session
cookie doesn't actually appear to be set when trying to make this work in my own project, even when using Firebase Hosting. I'm not sure if this is something that changed with Firebase Auth or some other issue.
I did notice that something that looks like an auth token appears to be stored in Indexed DB, so maybe that's where it is now. I'm not sure how you make use of that though.
Edit: After doing a bit more digging, I believe the code in the repo is incomplete. It looks like the intention is for the client side part of the code to set the __session
cookie itself and that it is not something that gets set automatically by Firebase Auth (and never was, as far as I can tell).
from friendlyeats-web.
Does this imply that the example is primarily designed for use with Firebase Hosting?
If someone chooses to host their project on Vercel instead, will they need to implement additional custom logic in order to set the session on the server side?
from friendlyeats-web.
after a lot of digging I am fairly sure the __session cookie expected in the tutorial is a firebase only thing, not from the auth package but from the frameworks.
from friendlyeats-web.
Same question? ☝🏼
from friendlyeats-web.
We really need clarification on this. Are the example and tutorial designed only for use with Firebase Hosting?
from friendlyeats-web.
Yup, thanks for asking this, I was close to giving up already, and just verified that indeed, it only works if you use firebase, either from emulators or not.
from friendlyeats-web.
Was anyone able to get the __session cookie after this project is deployed to Firebase hosting? It was working fine with my hosting emulator, but it stopped working after I deployed it. I checked the cookies tab, no cookie is set at all.
from friendlyeats-web.
Related Issues (20)
- Add data with Separate Form toi Collection Restaurants
- firebase emulator not working
- Use Prettier
- FriendlyEats Step 4 Errors
- This repository seems out of sync with the CodeLab documentation.
- For vue version.
- Breaks in Next.js 14: Can't resolve 'fs' HOT 5
- Can't host on firebase with Nextjs
- Question: What is "getAuthenticatedAppForUser" for? HOT 8
- Decoding Firebase session cookie failed
- Failed to compile HOT 1
- Error: Invalid value specified for cpu
- Wrong current payload in setRestaurantDetails
- Question: How does the auth-service-worker.js get packaged? HOT 1
- nextjs-end breaks on refreshing the page due to auth-service-worker error HOT 1
- Auth service worker doesn't store firebaseConfig options between restarts HOT 11
- chore(friendlyeats-web/auth-service-worker): location should be location.href
- auth-service-worker.js not found HOT 4
- nextjs-end rollout failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from friendlyeats-web.