Skip to content

Using Refine with Prisma and next-auth #1812

Answered by omeraplak
cloudcompute asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @asynchor 👋,
Thank you for contacting us!

a. Yes, You should use the @pankod/refine-nextjs-router package in Next.js projects
b. You can use it by adding a REST or GraphQL API layer in front of Prisma (I found a Prisma provider written for react-admin, maybe it can give you an idea, https://github.com/codeledge/ra-data-simple-prisma)
c. You can use it as it is done in Refine's finefoods client. You can prefer SSG over SSR, https://github.com/pankod/refine/blob/master/examples/fineFoods/client/pages/index.tsx#L109
d. It is not possible to change the state management. The only way would be to move forward with a fork. I think you can use next-auth with refine but we haven't tried it. If…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@doender
Comment options

Answer selected by cloudcompute
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vinclou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants