S
SolidJS4mo ago
ensi

(!) Failed to retrieve local session state from cookies after a successful session refresh

When I call hello, this exception pops up: Failed to retrieve local session state from cookies after a successful session refresh. This indicates a configuration error or that the browser is preventing cookie writes..
No description
4 Replies
ensi
ensiOP4mo ago
no extension are installed. I'm using latest chromium from AUR firefox acts the same
ensi
ensiOP4mo ago
this also doesn't work
No description
Madaxen86
Madaxen864mo ago
Can you share your repo or create a reproduction on stackblitz? https://start.solid.new/
StackBlitz
Solid-start With Tailwindcss Example - StackBlitz
Run official live example code for Solid-start With Tailwindcss, created by Solidjs on StackBlitz
ensi
ensiOP4mo ago
I figured it out myself. The issue was in bootstrap call at entry-client.tsx:
// @refresh reload
import { mount, StartClient } from "@solidjs/start/client";
import { bootstrapClient } from "./app/client/bootstrap";

bootstrapClient(); // this

mount(() => <StartClient />, document.getElementById("app")!);
// @refresh reload
import { mount, StartClient } from "@solidjs/start/client";
import { bootstrapClient } from "./app/client/bootstrap";

bootstrapClient(); // this

mount(() => <StartClient />, document.getElementById("app")!);
This function simply wraps another function call (which wraps this...), but I don't understand why it affects Solid or Solid Start at all:
import SuperTokens from "supertokens-web-js";
import Session from "supertokens-web-js/recipe/session";
import ThirdParty from "supertokens-web-js/recipe/thirdparty";
import EmailPassword from "supertokens-web-js/recipe/emailpassword";

export const initSupertokensClient = () => {
// this
SuperTokens.init({
appInfo: {
apiDomain: import.meta.env.VITE_HOST,
apiBasePath: "/auth",
appName: "ficlib-web",
},
recipeList: [Session.init(), EmailPassword.init(), ThirdParty.init()],
});
};
import SuperTokens from "supertokens-web-js";
import Session from "supertokens-web-js/recipe/session";
import ThirdParty from "supertokens-web-js/recipe/thirdparty";
import EmailPassword from "supertokens-web-js/recipe/emailpassword";

export const initSupertokensClient = () => {
// this
SuperTokens.init({
appInfo: {
apiDomain: import.meta.env.VITE_HOST,
apiBasePath: "/auth",
appName: "ficlib-web",
},
recipeList: [Session.init(), EmailPassword.init(), ThirdParty.init()],
});
};
Want results from more Discord servers?
Add your server