Core
Framework v2.x
2

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;