We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954ed80 commit a9c9334Copy full SHA for a9c9334
lib/auth.guard.ts
@@ -33,7 +33,8 @@ function createAuthGuard(type?: string | string[]): Type<CanActivate> {
33
class MixinAuthGuard<TUser = any> implements CanActivate {
34
@Optional()
35
@Inject(AuthModuleOptions)
36
- protected options: AuthModuleOptions;
+ protected options: AuthModuleOptions = {};
37
+
38
constructor(@Optional() options?: AuthModuleOptions) {
39
this.options = options ?? this.options;
40
if (!type && !this.options.defaultStrategy) {
0 commit comments