You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following the tutorial as close as possible, I even have the exact same code
import { AuthGuard } from '@nestjs/passport';
export class RefreshTokenGuard extends AuthGuard('jwt-refresh') {
constructor() {
super();
}
}
this is the error that I get
[Nest] 11492 - 21/12/2021, 11:45:25 pm ERROR [ExceptionsHandler] Unknown authentication strategy "jwt-refresh"
Error: Unknown authentication strategy "jwt-refresh"
at attempt (D:\dev\alejandria\jwt-test\node_modules\passport\lib\middleware\authenticate.js:193:39)
at authenticate (D:\dev\alejandria\jwt-test\node_modules\passport\lib\middleware\authenticate.js:370:7)
at D:\dev\alejandria\jwt-test\node_modules\@nestjs\passport\dist\auth.guard.js:91:3
at new Promise (<anonymous>)
at D:\dev\alejandria\jwt-test\node_modules\@nestjs\passport\dist\auth.guard.js:83:83
at RefreshTokenGuard.<anonymous> (D:\dev\alejandria\jwt-test\node_modules\@nestjs\passport\dist\auth.guard.js:49:36)
at Generator.next (<anonymous>)
at fulfilled (D:\dev\alejandria\jwt-test\node_modules\@nestjs\passport\dist\auth.guard.js:17:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
The text was updated successfully, but these errors were encountered:
I was following the tutorial as close as possible, I even have the exact same code
this is the error that I get
The text was updated successfully, but these errors were encountered: