Mikastark
07/13/2021, 8:38 AMRyan
07/13/2021, 9:42 AMgraphql-shield for authentication and authorisation both. There’s no performance penalty if the token is extracted multiple times. You can also use caching options to prevent the rule being called multiple timesMikastark
07/13/2021, 9:49 AMMikastark
07/13/2021, 9:50 AMRyan
07/13/2021, 9:58 AMAuthorizationPlugin plugin supports caching, then you can easily keep the functionality in the getter as you have currently. It also depends on how many requests you will be having. If it’s not large, then you should be fine 🙂Ryan
07/13/2021, 9:58 AMAuthorizationPlugin and only with graphql-shield .Mikastark
07/13/2021, 11:56 AMAuthorizationPlugin one year ago. I think handling permission apart from resolvers themselves is a little bit confusing and error prone as you may forgot to add/remove a guard on project evolution