Go Router + Riverpod Tutorials Series 4: Role Based Redirection
Now let's take a look at redirection depending on user roles
Source code: role_based_redirection
Now, Let's update our files starting with :
AuthNotifier and authProvider:
This is the updated AuthNotifier
class AuthNotifier extends StateNotifier<Map<...
harishkunchala.com2 min read