OrJDev
OrJDev
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
This is a prisma adapter but same logic goes for drizzle
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
What i recommend, is writing a custom adapter modifying the drizzle one
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
When session is called, it already fetched the user from the db, so doing it again you basically call it twice
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
const dbUser = await db.query.users.findFirst({ where: (table, { eq }) => eq(table.id, user.id), columns: { permissions: true, role: true, }, });
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
I have a fix for you
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
You can also easily write custom adapter if you need
21 replies
SSolidJS
Created by sh03 on 11/26/2024 in #support
OAuth / OpenID Connect
Basically authjs is just the wrapper, you can specify any db adapter you want, it supports prisma, supbase, drizzle, etc
21 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Awesome
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
published
pnpm install @solid-mediakit/prpc@latest @solid-mediakit/prpc-plugin@latest
pnpm install @solid-mediakit/prpc@latest @solid-mediakit/prpc-plugin@latest
this should fix it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
@him122 found the issue with the help of @Brendonovich so releasing a new version in a minute if you are up to test it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Yes i think i just found an issue with the useNavigate hook, updated Ryan so hopefully we figure it out soon
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
If it doesn’t work lmk i will fix it in a bit i think i might know what is it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
^ try
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Is this the issue?
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
onClick instead of onclick
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Is the request being made?
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Oh wait
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
That’s odd, if you open the network tab what does the response look like
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Bur pRPC is smart enough to omit out the redirect type and only take the actual return type
25 replies