vania_auth 1.0.0
vania_auth: ^1.0.0 copied to clipboard
Complete authentication system for Vania framework - JWT, tokens, guards, password hashing, and revocation.
1.0.0 #
First release. vania_auth is now the framework's only authentication surface —
the equivalent code was removed from vania core in 2.0.0.
- Requires
vania2.0.0. - JWT guards,
Auth(), personal access tokens, and an ORM-backedPersonalAccessTokenStoreimplementing core's single token contract. AuthenticateandRedirectIfAuthenticatedare concreteMiddlewareclasses, so they drop into anyRouter.get(...).middleware([...])chain.AuthServiceProviderinstalls a request user resolver, soreq.userkeeps working even though core no longer knows what a user is.Gatere-exports core's registry, soAuth().authorize()and the globalcan()/cannot()helpers consult the same policies.
Upgrading from Vania 1.x #
Add this package, then import Auth, Authenticate, and
RedirectIfAuthenticated from package:vania_auth/vania_auth.dart instead of
package:vania/vania.dart.