Expand description
§dioxus-auth
dioxus-auth is a planned Dioxus-native authentication and session-management crate for fullstack Dioxus applications.
The project is at the start stage. The current code defines the first core types only; Dioxus hooks, Axum integration, server functions, and examples are the next implementation milestones.
§Goals
- Feel native inside Dioxus apps.
- Keep the server as the source of truth.
- Use opaque, server-side sessions by default.
- Expose explicit auth state with
Loading,Authenticated, andUnauthenticated. - Stay storage-agnostic.
- Integrate cleanly with Dioxus fullstack and Axum.
§Non-Goals For The First Release
- OAuth
- passkeys
- MFA
- RBAC/permissions
- password reset
- email verification
- JWT/bearer auth
- production database adapters
- hosted-provider integrations
§Current Status
Started.
Implemented:
AuthStatusAuthUserSessionSessionIdAuthError
Next:
- Design
UserStoreandSessionStore. - Implement an in-memory store.
- Add Dioxus feature flags.
- Prototype
AuthProvideranduse_auth(). - Build a minimal fullstack example.
§License
Licensed under either of:
- Apache License, Version 2.0
- MIT license
Initial core types for
dioxus-auth.