Closed Pumkko closed 1 year ago
There's this weird hydration issue with solidstart, there is an issue open for that - https://github.com/solidjs/solid-start/issues/830
What i recommend doing is fetching the session from the server directly for now (if you choose pRPC with create jd app it already does it for you)
Works perfectly thank you ! I still had the error about the user id though
[auth][cause]: TypeError: Cannot read properties of undefined (reading 'id')
at Object.session (/src/server/auth.ts:11:32)
at Module.session (file:///C:/Poketext/tailwind-solid-auth/node_modules/@auth/core/lib/routes/session.js:32:52)
at async AuthInternal (file:///C:/Poketext/tailwind-solid-auth/node_modules/@auth/core/lib/index.js:28:33)
at async Proxy.Auth (file:///C:/Poketext/tailwind-solid-auth/node_modules/@auth/core/index.js:100:30)
at async eval (/node_modules/@solid-auth/base/index.js:25:16)
at async Object.GET [as handler] (/node_modules/@solid-auth/base/index.js:37:20)
at async eval (/node_modules/solid-start/api/middleware.ts:23:16)
at async eval (/node_modules/solid-start/entry-server/StartServer.tsx:45:12)
at async devFetch (file:///C:/Poketext/tailwind-solid-auth/node_modules/solid-start/dev/server.js:46:12)
at async startHandler (file:///C:/Poketext/tailwind-solid-auth/node_modules/solid-start/dev/server.js:115:20)
It seems to work fine however without the callback code in auth.ts
Hey there this was fixed in https://github.com/OrJDev/solid-auth/commit/b20192450411df4688b3dcb873ab5b376aa74df8 could you try it out and lmk if you now get the correct data rendered?
using the createSession hook.
https://github.com/OrJDev/create-jd-app/releases/tag/v0.2.7
If you want to you can also create a new app with everything new configured
Works perfectly ! Thanks !
Hi !
Running the default template with github i encountered the following issues :
Signing in works when i remove comment out the following code in
server/auth.js
With that change, Signing in works but it seems that i have a rerendering issue. After a successfull sign in the app does not display the correct information.
In the image does not load correctly, the app shows : "Logged in as" and then nothing. Hiding Chrome and reopening it "fixes" the issue.
Here are my dependencies in my package.json