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

Login issues with v2.0.5 #28

Closed
andrasbacsai opened this issue Feb 17, 2022 · 4 comments
Closed

Login issues with v2.0.5 #28

andrasbacsai opened this issue Feb 17, 2022 · 4 comments

Comments

@andrasbacsai
Copy link

I know it's not released yet officially - at least based on the GitHub releases, but the update has a weird error, causing failed login attempts.

Error: Not found: /api/v2/user/apps/appData/test1/logs
    at resolve (file:///app/server/app.js:1678:20)
    at async file:///app/server/app.js:1741:16
    at async Object.handle (file:///app/node_modules/svelte-kit-cookie-session/dist/esm/handle.js:7:26)
    at async respond (file:///app/server/app.js:1610:22)
    at async Array.ssr (file:///app/handler-81c538e0.js:783:19)
@pixelmund
Copy link
Owner

pixelmund commented Feb 17, 2022

Are you sure this is related to svelte-kit-cookie-session?

The error seems to be caused by your passedHandle function: This line

Can you share a repo or a small reproduction i can look at because this information isn't really helpful, i've just updated the example which is working fine with v2.0.5.

@andrasbacsai
Copy link
Author

Reverting to 2.0.2 fixed the issue.

Here is the codebase (tag v2.0.13) where I use your library:
https://github.com/coollabsio/coolify/blob/v2.0.12/src/hooks.ts

@pixelmund
Copy link
Owner

It should be fixed in v2.1.0, i've also added the parsed cookies into locals now, so you don't have to parse it again!

@andrasbacsai
Copy link
Author

Thank you!

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

2 participants