johnoliver2342
02/03/2023, 11:09 AMAuthGuard
on my method like this:```
@Post('/bulkAddUpdate')
@UseGuards(new AuthGuard())
async bulkAddUpdate(
@Body() bulkData: any,
@Session() session: SessionContainer
) {
console.log(session.getUserId()); // This logs nothing...
const user = await this.applicationService.bulkAction(bulkData.data);
if (user) {
return utils.sendSuccess(SUCCESS.S200.DEFAULT, user);
} else {
throw new NotFoundException();
}
}```
Upon signing in I am getting the front-token in the response headers and I am using that front-token to send the request in the postman as Bearer token, But I am getting unauthorised on every request on the above endpoint.
Something is wrong but don't know what it is.