Skip to content

Commit 8737099

Browse files
author
Nicolas MACHEREY
committed
Added imports
1 parent fed769a commit 8737099

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/app/oauth2-core.module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export class Oauth2CoreModule implements OnModuleInit {
127127
const providers: Provider[] = this.createAsyncProviders(options);
128128

129129
const userLoaderProvider = {
130+
imports: options.imports,
130131
provide: 'UserLoaderInterface',
131132
useFactory: async (options) => {
132133
return options.userLoader;
@@ -135,6 +136,7 @@ export class Oauth2CoreModule implements OnModuleInit {
135136
};
136137

137138
const userValidatorProvider = {
139+
imports: options.imports,
138140
provide: 'UserValidatorInterface',
139141
useFactory: async (options) => {
140142
return options.userValidator;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@switchit/nestjs-oauth2-server",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "NestJS oauth2 server by SWITCH IT CONSULTING",
55
"author": "Switch IT - Consulting",
66
"license": "MIT",

0 commit comments

Comments
 (0)