accounts-js prisma adapter #1145
Stringsaeed
started this conversation in
Show and tell
Replies: 2 comments
-
Thanks for sharing this! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for this! It looks like maybe something got out of sync though. The typescript is telling me there are a few missing methods on the DatabaseProvider from DatabaseInterface.
I'm happy to contribute a patch, if someone can help me find the relevant docs. (I'll keep looking) Update: It looks like they come from the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here I created an accounts-js Prisma 2 adapter for all that has been asked for.
prisma2-accounts-js-adapter
First Step:
Create
Databaseprovider.tsx
file, copyDatabaseProvider.tsx
from gistSecond Step:
initialize accountsjs server with the way you like but add to its config
Third Step
copy
models.prisma
from Gist to yourschema.prisma
NOTE
This because Prisma schema doesn't support extend or import 😔😔
Note: if you have any issue or bug feel free to comment here or comment to gist to update ASAP
Beta Was this translation helpful? Give feedback.
All reactions