juice_auth_routing 0.1.1 copy "juice_auth_routing: ^0.1.1" to clipboard
juice_auth_routing: ^0.1.1 copied to clipboard

Integration glue between juice_auth and juice_routing — AuthBloc-driven route guards and reactive redirect on auth changes.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.1 - 2026-06-16 #

Changed #

  • Allow juice_storage 2.0.0 (Hive CE migration). No API change.

0.1.0 - 2026-05-28 #

Added #

  • Initial release — integration glue between juice_auth and juice_routing.
  • AuthBlocAuthGuardAuthGuard wired to AuthBloc; redirects unauthenticated users to login (with returnTo).
  • AuthBlocGuestGuard — keeps authenticated users out of guest-only routes.
  • AuthBlocRoleGuard — gates routes on AuthState.hasRole.
  • AuthBlocRoutingBridge — watches AuthBloc and redirects to login when a session ends while on a protected route (logout / expiry), with an onAuthenticated hook for the login case.
0
likes
160
points
163
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Integration glue between juice_auth and juice_routing — AuthBloc-driven route guards and reactive redirect on auth changes.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#authentication #routing #bloc #guards #integration

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, juice, juice_auth, juice_routing

More

Packages that depend on juice_auth_routing