mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add autorization
This commit is contained in:
@@ -15,6 +15,7 @@ import { Optional } from '@angular/core';
|
|||||||
import { JsonStore } from './jsonStore.service';
|
import { JsonStore } from './jsonStore.service';
|
||||||
import { synchro } from './socket/synchro.service';
|
import { synchro } from './socket/synchro.service';
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
import { SessionStore } from '../store/session.service';
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -110,7 +111,7 @@ export class NotificationsService {
|
|||||||
console.log('STORAGE TOKEN', value)
|
console.log('STORAGE TOKEN', value)
|
||||||
this.storageService.get(AuthConnstants.USER).then(res => {
|
this.storageService.get(AuthConnstants.USER).then(res => {
|
||||||
console.log('USERID', res);
|
console.log('USERID', res);
|
||||||
const headers = { 'Authorization': 'Basic cGF1bG8ucGludG9AZ2FiaW5ldGVkaWdpdGFsLmxvY2FsOnRhYnRlc3RlQDAwNg==' };
|
const headers = { 'Authorization': SessionStore.user.BasicAuthKey };
|
||||||
const body = {
|
const body = {
|
||||||
UserId: res.UserId,
|
UserId: res.UserId,
|
||||||
TokenId: successResponse.deviceId,
|
TokenId: successResponse.deviceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user