lucavenir / go_router_riverpod

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

Integrate User Role Enum Type to User Model #25

Closed tonyhart7 closed 1 year ago

tonyhart7 commented 1 year ago

I think we should include that to User main model with Enum Type

lucavenir commented 1 year ago

Hi, thanks for the suggestion. I don't think I will merge these two classes, as in a real-case-scenario you don't want to couple authentication with authorization.

Nonetheless, thanks for you input - I'll rename the classes and the files so that it'll be more specific.

NOTE TO SELF: