Assuming your middleware looks like this:
const mw = (context, next) => {
...
};
You can access a user (if one is authenticated) via context.state.user.
Assuming your middleware looks like this:
const mw = (context, next) => {
...
};
You can access a user (if one is authenticated) via context.state.user.