Mocking jsonwebtoken verify function, so that we can pass a none valid JWT token which represents the user ID, instead of mocking the AuthGuards (which is too late and requires the correct order of guards in the code). Mocking the JwtService is not sufficient, as passport is not using this service
Mocking jsonwebtoken verify function, so that we can pass a none valid JWT token which represents the user ID, instead of mocking the AuthGuards (which is too late and requires the correct order of guards in the code). Mocking the JwtService is not sufficient, as passport is not using this service