KoALa-MHF / koala-app

MIT License
4 stars 3 forks source link

Mocking jsonwebtoken verify function #394

Closed TS-Tino16 closed 10 months ago

TS-Tino16 commented 11 months ago

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