I recently had similar problem.
It might be solution
JwtModule.register({ global: true, secret: "secret", signOptions: { expiresIn: "1d" }, }),
just add global: true
global: true