Skip to main content

multi_role_auth 0.2.0 copy "multi_role_auth: ^0.2.0" to clipboard
multi_role_auth: ^0.2.0 copied to clipboard

Reusable multi-role auth logic for Flutter apps, backed by Supabase: bloc/cubit, domain entities/usecases, and repository. No UI - screens stay app-owned.

0.2.0 #

  • Add password reset by email via the SendPasswordResetEmail use case, routed through AuthRepository / AuthRemoteDataSource like the other auth operations. Kept as a use case (not an AuthBloc event) so it suits a "forgot password" dialog with its own loading state.

0.1.0 #

Initial real release, extracted from and validated against multi-role-flutter-auth.

  • Supabase-backed email/password auth: sign up, log in, session-restore, sign-out, account deletion
  • Per-user roles via UserRole, configurable table/column names via SupabaseSchema
  • AuthBloc + AppUserCubit for state management, with optional onLogout / onAccountDeleted host-app hooks
  • No UI - screens are expected to stay app-owned
0
likes
120
points
227
downloads

Documentation

API reference

Publisher

verified publisherharipin.com

Weekly Downloads

Reusable multi-role auth logic for Flutter apps, backed by Supabase: bloc/cubit, domain entities/usecases, and repository. No UI - screens stay app-owned.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_bloc, fpdart, supabase_flutter

More

Packages that depend on multi_role_auth