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

[BUG] Support for @sveltejs/kit@1.0.0-next.472 #69

Closed
pilcrowOnPaper opened this issue Sep 11, 2022 · 3 comments
Closed

[BUG] Support for @sveltejs/kit@1.0.0-next.472 #69

pilcrowOnPaper opened this issue Sep 11, 2022 · 3 comments
Labels
bug Something ain't right...

Comments

@pilcrowOnPaper
Copy link
Member

Bug report

Report for: Lucia

Since cookies can only be set using cookies instead of setHeaders, cookies array returned from auth methods cannot be easily set.

Additional info

Version

v0.8.3

Reproduction

none

Additional notes

release notes

@pilcrowOnPaper pilcrowOnPaper added pkg:lucia-sveltekit bug Something ain't right... priority Must be fixed as soon as possible labels Sep 11, 2022
@pilcrowOnPaper
Copy link
Member Author

Fix planned for v0.8.4

@pilcrowOnPaper
Copy link
Member Author

This will be addressed by providing setCookie method, which takes SvelteKit's cookie api and n number of cookie strings.

const user = await auth.createUser()
setCookie(cookies, ...user.cookies)

@pilcrowOnPaper pilcrowOnPaper added in the works and removed priority Must be fixed as soon as possible labels Sep 13, 2022
@pilcrowOnPaper pilcrowOnPaper mentioned this issue Sep 15, 2022
@pilcrowOnPaper
Copy link
Member Author

fixed with #72 (v0.8.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something ain't right...
Projects
None yet
Development

No branches or pull requests

1 participant