Skip to content
Advertisement

Tag: firebase

How can i check a JWT token is valid using an async function route with nodejs?

I am following the guide below to verify that only registered users can send requests to my backend nodejs server, my frontend is sending requests with an authorization header that contains a token and that part is working well. The nodejs backend should then check the token is valid before sending a response: https://www.tonyvu.co/posts/jwt-authentication-node-js The example shows i should add

“Parsing Error: unexpected token function” on Async Function with a recent Node version [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 6 months ago. Improve this question I am working on a side project, using node and firebase. I can

How to enable multi-tab synchronization for Firebase Web Version 9 (modular)?

I am using Firebase JavaScript Modular Web Version 9 SDK. And I have enabled offline persistence as per these docs using this: enableIndexedDbPersistence(db). Now I want to keep data synced between multiple open browser tabs. I thought I could do that in the PersistenceSettings object like this: enableIndexedDbPersistence(db, { synchronizeTabs: true }). But it turns out that synchronizeTabs property does

firebase query at same values

I have a query: Which returns all the users with all their highscores in descending order. The problem is that there are users who got the same high scores, and now they are ordered I think randomly. So for example, if 3 users get 3000 score it just randomly orders those 3. How can I for example look at another

Advertisement