Skip to content

Commit 8ac9863

Browse files
Merge pull request nestjs#2243 from saarw/fix-jwt-deprecation
fix(sample): update sample to avoid deprecated secretOrPrivateKey
2 parents fdf3d89 + 416f710 commit 8ac9863

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample/19-auth/src/auth/auth.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { JwtStrategy } from './jwt.strategy';
99
imports: [
1010
PassportModule.register({ defaultStrategy: 'jwt' }),
1111
JwtModule.register({
12-
secretOrPrivateKey: 'secretKey',
12+
secret: 'secretKey',
1313
signOptions: {
1414
expiresIn: 3600,
1515
},

0 commit comments

Comments
 (0)