Database-Less Passkey Authentication for Blockchain Storage #2687

Closed
opened 2026-03-13 10:13:12 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @onmax on GitHub (Jan 11, 2026).

n/a

Originally created by @onmax on GitHub (Jan 11, 2026). n/a
Author
Owner

@better-auth-agent[bot] commented on GitHub (Jan 11, 2026):

It seems you have a question related to a new database-less passkey plugin for Better Auth. This plugin is designed to facilitate blockchain-as-database deployments by utilizing cookie-based challenges, allowing for stored passkey data in external systems like blockchain or IPFS, while eliminating the need for traditional databases.

Key Features:

  1. Cookie-Based Challenges: Supports short-lived, ephemeral data storage without a database.
  2. Custom Storage: Enables storage of passkey data in blockchain or other external systems.
  3. Asynchronous Blockchain Writes: Uses hooks for non-blocking operations.

Security Considerations:

  • Accepts replay risk if counter verification is disabled, which allows for a fully database-less authentication flow but may open up potential replay attacks.

Example Configuration:

passkey({
  storage: 'custom',           // Use blockchain or external storage
  challengeStrategy: 'cookie', // No database for challenges
  verifyCounter: false,        // Accept replay risk
  customStorage: blockchainAdapter,
  hooks: { afterCreatePasskey: writeToBlockchain }
});

This configuration prioritizes a fully stateless architecture, presenting a secure yet flexible model for user authentication without reliance on traditional databases.

If you're interested in implementing or discussing this plugin further, or have any specific questions about it, feel free to ask! What features are you most excited about exploring with this new plugin?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

@better-auth-agent[bot] commented on GitHub (Jan 11, 2026): It seems you have a question related to a new database-less passkey plugin for Better Auth. This plugin is designed to facilitate blockchain-as-database deployments by utilizing cookie-based challenges, allowing for stored passkey data in external systems like blockchain or IPFS, while eliminating the need for traditional databases. ### Key Features: 1. **Cookie-Based Challenges**: Supports short-lived, ephemeral data storage without a database. 2. **Custom Storage**: Enables storage of passkey data in blockchain or other external systems. 3. **Asynchronous Blockchain Writes**: Uses hooks for non-blocking operations. ### Security Considerations: - Accepts replay risk if counter verification is disabled, which allows for a fully database-less authentication flow but may open up potential replay attacks. ### Example Configuration: ```typescript passkey({ storage: 'custom', // Use blockchain or external storage challengeStrategy: 'cookie', // No database for challenges verifyCounter: false, // Accept replay risk customStorage: blockchainAdapter, hooks: { afterCreatePasskey: writeToBlockchain } }); ``` This configuration prioritizes a fully stateless architecture, presenting a secure yet flexible model for user authentication without reliance on traditional databases. If you're interested in implementing or discussing this plugin further, or have any specific questions about it, feel free to ask! What features are you most excited about exploring with this new plugin? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Author
Owner

@onmax commented on GitHub (Jan 11, 2026):

Wrong repo - moving to onmax/casshlink

@onmax commented on GitHub (Jan 11, 2026): Wrong repo - moving to onmax/casshlink
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2687