mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
- Add cordova storage plugin
- Add plugin configuration - Add storage set and get methods
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user