-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudflare D1 database adapter #5918
Comments
I'll open a PR from here once I get some progress made: https://github.com/mackenly/next-auth |
I'm probably missing something, but would there be any reason that all the adapters using the |
@mackenly what issue are you running to? |
@ThangHuuVu I'm not super experienced in typescript; however, I feel like this probably isn't the expected behavior. Do the same things happen to you or am I doing something wrong? Thank you! Open for screenshotsIn this codespace all I've done is clone/open it, run ```corepack enable pnpm```, ```pnpm --version```, and ```pnpm install```.This screenshot is from the index.ts in the adapter-firebase package. The same issue is present in that package's test. It's not finding next-auth. This error is thrown when I tried to run pnpm install in the adapter-firebase directory.
|
Hello @mackenly Running Explanation: when everything goes right the import in adapter-firebase would be from I couldn't reproduce the Hope it helps 👍 |
I opened a PR, the adapter works. It passes the adapter-test test suite, it works in a demo site I built locally based on the sveltekit framework dev app and I was able to deploy it to a cloudflare pages site. There are 2 things that need resolving.
It would be great to get some feedback on using it from someone else like the OP @mackenly. |
Awesome, @jschlesser! Will definitely test and follow up with any feedback. |
Good news, the miniflare maintainer finally published the fix to NPM today. I can fix # 2 of the issues that need resolving ☝️ . I'll get to that this week. For # 1, I'm going to move forward on the docs too vs waiting for a response from a maintainer. Im going to assume that the docs should be for next-auth for now. |
Hey @jschlesser / @mackenly, I'm a Systems Engineer on the D1 team, this looks awesome! I'll add it to https://developers.cloudflare.com/d1/platform/community-projects/ once it gets merged |
@rozenmd , sounds good! |
It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks! |
To keep things tidy, we are closing this issue for now. If you think your issue is still relevant, leave a comment and we might reopen it. Thanks! |
Hey! I am a Solutions Architect from Cloudflare (and love to code in my free time). Would love to see D1 support. Is there anything I/we from the Cloudflare side can do to support? |
@markdembo @jschlesser I've just left some review comments in the PR, we can continue our discussion there! |
#6953 was merged earlier in the month, adding D1 as an adapter. Thank you to all the contributors! Closing this issue. See D1 adapter docs at: https://authjs.dev/reference/adapter/d1 |
Thank you everyone!On Sep 28, 2023, at 6:30 PM, Mackenly Jones ***@***.***> wrote:
#6953 was merged earlier in the month, adding D1 as an adapter. Thank you to all the contributors! Closing this issue.
See D1 adapter docs at: https://authjs.dev/reference/adapter/d1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Description 📓
I'd like to add Cloudflare's D1 database service as a DB adapter.
How to reproduce ☕️
N/A
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
The text was updated successfully, but these errors were encountered: