Mongodb – How to keep user logged after browser closing in React – Express?
I am developing an application in React - Express - Mongo, how can i keep the user logged even after the browser is closed or page is refreshed?
I am developing an application in React - Express - Mongo, how can i keep the user logged even after the browser is closed or page is refreshed?
I get this error whenever I try to fetch data, I don't know why, it should show me posts but it gives me an error and a white page! This the error I get This the Posts.jsx code import Post…
Edit: I have solved my problem. The solution is in the comments. I'm trying to allow users to link other accounts to their main accounts on my app. When they go to link an account I want to ensure the…
I get this error whenever I use the api and send post, Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client This is the code ! //LOGIN router.post("/login", async (req, res) => { try { const user…
I am moving my package from react-adal to @azure/msal-react. In react-adal I can authorise and able to go my app. I am using same client_id and Tenant_id but seems like getAllAccounts() returns me empty array, it means no user found…
So I have a REST api. I want to keep it stateless, but at the sametime I need to make a real time chat. The only way I can imagine a real time chat, is with websockets. The problem accurs…
name: CI/CD Docker on: push: branches: [main] env: DOCKER_IMAGE: ghcr.io/${{ github.actor }}/github-actions-auto VERSION: ${{ github.sha }} NAME: go_cicd jobs: build: name: Build runs-on: ubuntu-latest steps: # github repository에서 checkout - uses: actions/checkout@v2 - name: Set up docker buildx id: buildx…
Summary: I have a component that contains an Antd Table component. The Antd Table component is created initially based on the original userData that is generated using a fetch request. The data is loaded initially and set using setState(fetchedData) calling…
Here is, my code. i want to add a spinner when data is loading then after finish loading display the data. {/* product section */} <section className="container mx-auto my-5 row"> <h6 className="text-center">WANT TO SEE</h6> <h2 className="text-center mb-5">Our Services</h2> { Products.slice(0,6)?.map((product)…
So I want to add delete button, but when I click it I see error: 'TypeError: props.onDeleteTask is not a function' - in component - SingleTask.js //../components/SingleTask.js (...) function deleteTask(props){ const dataId = props.id; props.onDeleteTask(dataId) } (...) <div className={classes.delete}> <img…