Cookie bug
https://github.com/sh1man999/solidstart-auth.git
The problem is the following:
After I called logInAction, I set cookies and redirected to the main page, but the redirect did not occur
GitHub
GitHub - sh1man999/solidstart-auth: Created with StackBlitz ⚡️
Created with StackBlitz ⚡️. Contribute to sh1man999/solidstart-auth development by creating an account on GitHub.
9 Replies
you will have more chance on getting a response if make a stackblitz/playground reproduction
stackblitz/playground doesn't want to work with Vinxi
you can check it like this.
cookies will be empty
Vinxi works fine with Stackblitz - all the SolidStart examples run there, if you adjust the end of this url:
https://stackblitz.com/github/solidjs/solid-start/tree/main/examples/basic
StackBlitz
Solid-start Basic Example - StackBlitz
Run official live example code for Solid-start Basic, created by Solidjs on StackBlitz
sh1man999
StackBlitz
Solid-start Basic Example - StackBlitz
Run official live example code for Solid-start Basic, created by Solidjs on StackBlitz
I couldn't get stackblitz to work. gives me
Error: Context is not available
.
I cloned your repro instead. Solution is I think the following:
instead of
do
but not a solidstart expert tbh... so grain of salt ❄️If you clone the project into Git, it works.
https://stackblitz.com broken
the whole problem is that it is impossible to get cookies on stackblitz
If you comment out these lines everything will work
I solved the problem, you just need to revise the cache
return redirect(paths.home, {revalidate: SESSION_CACHE_KEY});