Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on login #1

Open
pikachub2005 opened this issue Aug 7, 2023 · 0 comments
Open

Error on login #1

pikachub2005 opened this issue Aug 7, 2023 · 0 comments

Comments

@pikachub2005
Copy link

pikachub2005 commented Aug 7, 2023

- error Error [TypeError]: Cannot read properties of undefined (reading 'value')
    at getCookie (file:///home/runner/Notifications/node_modules/replit-login/dist/index.mjs:27:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async login (file:///home/runner/Notifications/node_modules/replit-login/dist/index.mjs:33:19)
    at async handler (webpack-internal:///(api)/./pages/api/login.ts:21:23) {
  digest: undefined
}

Code worked a couple weeks ago, now it doesn't. Also seems to be affecting Ironclad's repl, so it's not just me.

It seems like you're trying to grab the SID before logging in, which causes cookies['connect.sid] to be undefined in getCookie. I'm not exactly sure why you're not getting the cookie from the login request, so I can't really make a pr to fix it =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant