Skip to content

Commit

Permalink
fix(module): useClass null to adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Apr 6, 2017
1 parent 2d8992a commit 98caa55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class AuthenticationModule {
NonPersistent,
{ provide: NonPersistentIdToken, useValue: null },
{ provide: HttpAdapterOptionsToken, useValue: null },
{ provide: Adapter, useClass: adapter },
{ provide: Adapter, useClass: adapter || HttpAdapter },
{ provide: Storage, useClass: storage || LocalStorage }
]
};
Expand Down

0 comments on commit 98caa55

Please sign in to comment.