DAvid
KKinde
•Created by DAvid on 7/15/2024 in #💻┃support
Nuxt with Prisma ORM and Kinde Auth
Hello, I'm trying to find an equivalent of the following code for Nuxt.js to connect a user signing in with Kinde to a Prisma powered database before initial page load.
The code comes from this tutorial https://kinde.com/blog/engineering/set-up-a-nextjs-app-with-prisma-orm-and-kinde-auth/ and uses the
{getKindeServerSession}
helper from the Next SDK to access user details from the server before the page loads — I can not see this helper in either the Nuxt or Typescript SDK.
Thanks8 replies
KKinde
•Created by DAvid on 5/15/2024 in #💻┃support
Nuxt DB connection
I am using the Kinde Nuxt SDK and want to know the simplest way to connect a kinde-authed user to a DB to show their unique data? For simplicity I have set up an SQL lite DB with Prisma.
I have noticed that the Next SDK is checking for the server session using the following import statement, but this is not obvious in the Nuxt SDK?
import {getKindeServerSession} from "@kinde-oss/kinde-auth-nextjs/server";
@Oli - Kinde I noticed you recommended webhooks for another Nuxt user.
Thanks!
9 replies