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
Annotate a state class or var with a decorator, perhaps named auth_required, or protect, which allows you to specify 'permission' or 'role', similar to the react component:
Approach 1 is simple, encourages the substate behavior described above, and makes accessing the signed in user information straight forward... Approach 2 feels pretty magical, and allows for much finer-grained permissions, but has the dangerous default of allowing information to leak if you don't wrap one of the fields...
Investigate the following two methods for ensuring state vars are not leaked to unauthenticated users:
auth_required
, orprotect
, which allows you to specify 'permission' or 'role', similar to the react component:Approach
1
is simple, encourages the substate behavior described above, and makes accessing the signed in user information straight forward... Approach2
feels pretty magical, and allows for much finer-grained permissions, but has the dangerous default of allowing information to leak if you don't wrap one of the fields...(Discord thread here)
The text was updated successfully, but these errors were encountered: