You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a project and I need to manage the rules by modules, can the user be an administrator in one module and in another he can only have editor permission?
Should I look for the permissions, at the time of authentication or in each route should I make an api call to my backend to look for the permissions for each module?
I'm implementing tanStack Router, but at this point I need help deciding which architecture to use and how to do this with tanStack Router, for now thank you very much
If to make the api call, which tanstack router method to use and the best place to do it, I'm trying to use _auth.tsx on the root route, to avoid using beforeLoad on all routes
Below is an image of how I'm dealing with the front, but I don't know if this is the best place or the best way to do this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a project and I need to manage the rules by modules, can the user be an administrator in one module and in another he can only have editor permission?
Should I look for the permissions, at the time of authentication or in each route should I make an api call to my backend to look for the permissions for each module?
I'm implementing tanStack Router, but at this point I need help deciding which architecture to use and how to do this with tanStack Router, for now thank you very much
If to make the api call, which tanstack router method to use and the best place to do it, I'm trying to use _auth.tsx on the root route, to avoid using beforeLoad on all routes
Below is an image of how I'm dealing with the front, but I don't know if this is the best place or the best way to do this
Beta Was this translation helpful? Give feedback.
All reactions