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
increase performance of queries by caching user info from JWT
Would also remove a lot of redundant code like
if(!decodedToken||!decodedToken.sub){returnnewGraphQLError('Missing fields in the Auth Token');}const{ sub }=decodedToken;constuserFromDB=awaitUserModel.findOne({authProviderID: sub}).setOptions({sanitizeFilter: true}).exec();
The text was updated successfully, but these errors were encountered:
increase performance of queries by caching user info from JWT
Would also remove a lot of redundant code like
The text was updated successfully, but these errors were encountered: