Identify user based on the JWT attached with request

I think you can also just use the built in ctx

const {user } = ctx.state;

This will give you the user object of that user.

1 Like