The way to get payload after the guard is like what this tutorial mentioned.
@UseGuards(JwtAuthGuard)
@Get('profile')
getProfile(@Request() req) {
return req.user;
}
Basically, you can access the payload with the object key user
in the request.
But I'd like to know how to store this payload in another key. Is it possible?