loggd | A simple local JSON database made with NodeJS , for NodeJS | Runtime Evironment library
kandi X-RAY | loggd Summary
kandi X-RAY | loggd Summary
Listen, you just want to log something? or might just want to save and retrieve JSON and perform basic operations on the data, like a database? Don't want to learn a big library to do that? You're in luck! Because loggd is aimed to solve all of these problems for you! Let me show you .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of loggd
loggd Key Features
loggd Examples and Code Snippets
Community Discussions
Trending Discussions on loggd
QUESTION
I just realized I built a web app around a bug. I use firebase authentication to login the user. Then I use the user-uid from firebase to find the user with the id in mongodb. The connection between firebase and mongodb work but when I close the browser, use a differnt browser or connect to the localserver via phone the user is still logged in. So one user loggs in and every client which is connected to the server is loggd in with the same data unless someone presses "Logout" or the server gets restarted.
I tried to set a persistence with firebase.auth().setPersistence(firebase.auth.Auth.Persistence.SESSION)
but then I get the error Error: The current environment does not support the specified persistence type.
Why does the server saves the loggd in user, how can I fix that? :(
...ANSWER
Answered 2020-Sep-30 at 14:58For people who landed on this by search engines: I solved this by recoding the login system to a cookie based authentication. You can use the tutorial by firebase: https://firebase.google.com/docs/auth/admin/manage-cookies
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install loggd
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page