getUser #
Available since 2.11.0
Returns the current user.
Arguments #
getUser (): User | null
Example #
const user = request.getUser();
// equivalent
const user = request.context.user;
Edit this page on Github(opens new window)
Returns the current user.
getUser (): User | null
const user = request.getUser();
// equivalent
const user = request.context.user;