Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Juan David <juand.business@gmail.com>
  • Loading branch information
juandl committed Jul 27, 2020
1 parent 6564d47 commit bdb530a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = async (ctx, next) => {
throw new Error('Invalid token: Token did not contain required fields');
}

// fetch authenticated user
ctx.state.user = await strapi.plugins[
'users-permissions'
].services.user.fetchAuthenticatedUser(id);
Expand Down

0 comments on commit bdb530a

Please sign in to comment.