Skip to content

Commit

Permalink
Merge pull request #268 from lenneTech/develop
Browse files Browse the repository at this point in the history
Release 9.0.26
  • Loading branch information
kaihaase authored Jan 22, 2023
2 parents 41e067f + 92b1d94 commit 6925f09
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lenne.tech/nest-server",
"version": "9.0.25",
"version": "9.0.26",
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
"keywords": [
"node",
Expand Down
14 changes: 10 additions & 4 deletions src/core/modules/auth/core-auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export class CoreAuthModule {
UserModule: Type<any>,
UserService: Type<CoreAuthUserService>,
options: JwtModuleOptions & {
authService?: Type<CoreAuthService>;
jwtStrategy?: Type<JwtStrategy>;
imports?: Array<Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference>;
providers?: Provider[];
}
Expand All @@ -46,10 +48,14 @@ export class CoreAuthModule {
provide: 'PUB_SUB',
useValue: new PubSub(),
},

// Standard services
CoreAuthService,
JwtStrategy,
{
provide: CoreAuthService,
useClass: options.authService || CoreAuthService,
},
{
provide: JwtStrategy,
useClass: options.jwtStrategy || JwtStrategy,
},
];
if (Array.isArray(options?.providers)) {
providers = imports.concat(options.providers);
Expand Down

0 comments on commit 6925f09

Please sign in to comment.