- Add cordova storage plugin

- Add plugin configuration
- Add storage set and get methods
This commit is contained in:
tiago.kayaya
2020-12-16 16:06:14 +01:00
parent 24c3facbf2
commit 2535921452
7 changed files with 24 additions and 23 deletions
+1
View File
@@ -21,6 +21,7 @@ export class ChatService {
private authService: AuthService,
private storageService:StorageService,) {
this.headers = new HttpHeaders();
this.storageService.get()
this.authService.userData$.subscribe((res:any)=>{
this.headers = this.headers.set('X-User-Id', res.userId);
this.headers = this.headers.set('X-Auth-Token', res.authToken);