juice_auth_routing 0.1.1
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.0 - 2026-05-28 #
Added #
- Initial release — integration glue between
juice_authandjuice_routing. AuthBlocAuthGuard—AuthGuardwired toAuthBloc; redirects unauthenticated users to login (withreturnTo).AuthBlocGuestGuard— keeps authenticated users out of guest-only routes.AuthBlocRoleGuard— gates routes onAuthState.hasRole.AuthBlocRoutingBridge— watchesAuthBlocand redirects to login when a session ends while on a protected route (logout / expiry), with anonAuthenticatedhook for the login case.