lucavenir / go_router_riverpod

An example on how to use Riverpod + GoRouter
460 stars 68 forks source link

example of code_gen + FirebaseAuth + UserRole #21

Open k2s opened 1 year ago

k2s commented 1 year ago

Would you be so kind to rework the Firebase Auth example to use generation of GoRouter routes, generation of routerProvider and support for UserRoles ?

Very interesting would be to have as similar solution as possible for the dummy auth example and the one using Firebase Auth. For example to move await FirebaseAuth.instance.signInAnonymously(); into StreamProvider authProvider.

lucavenir commented 1 year ago

Sure thing, you're right. I should maintain that example, too. Chances are that code_gen and firebase will be the only two example maintained in this repo.

WIP