Skip to content

Commit 27b92ca

Browse files
committed
fix(content): remove JwtModule from exports
In the JWT functionality chapter in Authentication page it is needed to remove the JwtModule from exports in the auth/auth.module example. The JwtService is only used in the auth scope (by AuthService or JwtStrategy) so after this commit it is removed from the exports property in AuthModule decorator to prevent misleading interpretation in the docs. Fixes #1969
1 parent 84283b2 commit 27b92ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ import { jwtConstants } from './constants';
499499
}),
500500
],
501501
providers: [AuthService, LocalStrategy],
502-
exports: [AuthService, JwtModule],
502+
exports: [AuthService],
503503
})
504504
export class AuthModule {}
505505
@@switch

0 commit comments

Comments
 (0)