From 98caa55dd508d82e2c5fec687c745c19352a99e7 Mon Sep 17 00:00:00 2001 From: ramonornela Date: Thu, 6 Apr 2017 15:30:16 -0300 Subject: [PATCH] fix(module): useClass null to adapter --- src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 24ea036..e3d9c0f 100644 --- a/src/module.ts +++ b/src/module.ts @@ -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 } ] };