vania_auth 1.0.0 copy "vania_auth: ^1.0.0" to clipboard
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 vania 2.0.0.
  • JWT guards, Auth(), personal access tokens, and an ORM-backed PersonalAccessTokenStore implementing core's single token contract.
  • Authenticate and RedirectIfAuthenticated are concrete Middleware classes, so they drop into any Router.get(...).middleware([...]) chain.
  • AuthServiceProvider installs a request user resolver, so req.user keeps working even though core no longer knows what a user is.
  • Gate re-exports core's registry, so Auth().authorize() and the global can() / 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.

1
likes
150
points
88
downloads

Documentation

Documentation
API reference

Publisher

verified publishervdart.dev

Weekly Downloads

Complete authentication system for Vania framework - JWT, tokens, guards, password hashing, and revocation.

Homepage
Repository (GitHub)
View/report issues

Topics

#server #backend #authentication #jwt #vania

License

MIT (license)

Dependencies

crypto, dart_jsonwebtoken, meta, vania

More

Packages that depend on vania_auth