[GH-ISSUE #8846] Feature Request: Cloudflare KV Storage Adapter (similar to @better-auth/redis-storage) #19841

Open
opened 2026-04-15 19:11:42 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @anmol-fzr on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8846

Originally assigned to: @ping-maxwell on GitHub.

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Better Auth currently provides a Redis-based secondary storage adapter via @better-auth/redis-storage. It would be highly valuable to have a similar official adapter for Cloudflare KV to support serverless and edge-first deployments.

Describe the solution you'd like

Introduce a new package:

@better-auth/cloudflare-kv-storage

This adapter would implement the same interface as @better-auth/redis-storage, enabling it to be used interchangeably.

Describe alternatives you've considered

  • Using KV via custom userland adapters (currently possible but repetitive)

Additional context

I’d be happy to implement this adapter and align it with the existing storage interface if this proposal is accepted.

Originally created by @anmol-fzr on GitHub (Mar 30, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8846 Originally assigned to: @ping-maxwell on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Better Auth currently provides a Redis-based secondary storage adapter via `@better-auth/redis-storage`. It would be highly valuable to have a similar official adapter for Cloudflare KV to support serverless and edge-first deployments. ### Describe the solution you'd like Introduce a new package: `@better-auth/cloudflare-kv-storage` This adapter would implement the same interface as `@better-auth/redis-storage`, enabling it to be used interchangeably. ### Describe alternatives you've considered - Using KV via custom userland adapters (currently possible but repetitive) ### Additional context I’d be happy to implement this adapter and align it with the existing storage interface if this proposal is accepted.
GiteaMirror added the enhancement label 2026-04-15 19:11:42 -05:00
Author
Owner

@ping-maxwell commented on GitHub (Mar 31, 2026):

Depending on how many people want this (based on upvotes on the post) we will consider supporting this.

<!-- gh-comment-id:4163137103 --> @ping-maxwell commented on GitHub (Mar 31, 2026): Depending on how many people want this (based on upvotes on the post) we will consider supporting this.
Author
Owner

@anmol-fzr commented on GitHub (Apr 3, 2026):

I would like to work on this, I use Cloudflare a lot so I have build that KV secondary storage bridge for myself.

<!-- gh-comment-id:4183442308 --> @anmol-fzr commented on GitHub (Apr 3, 2026): I would like to work on this, I use Cloudflare a lot so I have build that KV secondary storage bridge for myself.
Author
Owner

@Sandeepinsa32 commented on GitHub (Apr 4, 2026):

I use KV too, i would be good to have KV support

<!-- gh-comment-id:4186719770 --> @Sandeepinsa32 commented on GitHub (Apr 4, 2026): I use KV too, i would be good to have KV support
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19841