#admin middlweware
3 messages · Page 1 of 1 (latest)
am not sure what are you trying to say, but yes you should decode the token and validate on middleware level and then pass the decoded token toward your route.
which then in turn can validate the role