Faunadb support for database #1351
Replies: 16 comments 4 replies
-
here are the steps I followed for another attempt https://hackmd.io/592gFSe_QSmaZmlnjehtSQ and this is the repo |
Beta Was this translation helpful? Give feedback.
-
we are currently moving out adapters from the main repo. you can see a WIP Fauna adapter here nextauthjs/adapters#5 |
Beta Was this translation helpful? Give feedback.
-
@balazsorban44 Can you please provide the instructions to install the adapter from fauna branch and run it please? |
Beta Was this translation helpful? Give feedback.
-
You can find a super-early release here: https://www.npmjs.com/package/@next-auth/fauna-adapter. Do expect bugs. You can always look at the source code and implement your own custom one if you absolutely need to get it working. |
Beta Was this translation helpful? Give feedback.
-
Hey thank you ! I have documented my attempts here , can you please take a look at it ? Attempt 2 , looks like a bug Attempt 1 , |
Beta Was this translation helpful? Give feedback.
-
The links you provided are cut off, meaning I cannot access any of the pages |
Beta Was this translation helpful? Give feedback.
-
Sorry ! Let me repost , here are the links , Attempt 1 Attempt 2 |
Beta Was this translation helpful? Give feedback.
-
What do you mean by:
|
Beta Was this translation helpful? Give feedback.
-
It give me an Module not found error , But in the node modules its installed |
Beta Was this translation helpful? Give feedback.
-
BTW, since it is such an early release, you might be better off just copy-pasting the content of the PR in your code and tweak it around. Unfortunately, I have no experience with Fauna, and one of the reasons we moved it to the adapters repo, so the community could maintain it for us. @pbteja1998 MIGHT be able to give some advice as the creator of the PR, if he doesn't mind. 🙂 |
Beta Was this translation helpful? Give feedback.
-
It installs the src and tests folder |
Beta Was this translation helpful? Give feedback.
-
Ohhh okay , I actually tried that before , in attempt 1 but I feel like the code should be transpiled . I understand , thank you for helping ! I will contact him , I hope he doesnt mind too ! |
Beta Was this translation helpful? Give feedback.
-
Right! Then it is because we forgot to publish the built/transpailed code to npm... I think @williamluke4 fixed this, but the Fauna PR hasn't been updated. Including the code directly in your project would make sure Next.js transpiles is correctly though. 😉. I'll check if we can get the PR publishing work properly, so you can just import it normally. |
Beta Was this translation helpful? Give feedback.
-
Hey @Rashmi-278 I am using Fauna DB adapter on my NextJS starter repo. Take a look at that. I will try to work on the PR in the nextjs-adapters too so that you can install it directly from there when that is done. |
Beta Was this translation helpful? Give feedback.
-
I also have a |
Beta Was this translation helpful? Give feedback.
-
for anyone looking for more on using the FaunaDB adapter with nextauth, there’s now a doc for it: https://next-auth.js.org/adapters/fauna |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
Hey guys , I see that faunadb adapter was merged to Canary branch , Can I please get instructions using it ?
What are you trying to do
Using faunadb as database for next-auth
Reproduction
Here's a gist of the steps that I followed trying to use faunadb
https://gist.github.com/Rashmi-278/633fb62ee0c70277bc69b033eeb55409
Feedback
Beta Was this translation helpful? Give feedback.
All reactions