remove reject of the headets

This commit is contained in:
Eudes Inácio
2023-10-25 09:08:49 +01:00
parent f92cdc5816
commit 97d86455cf
17 changed files with 108 additions and 71 deletions
+2 -1
View File
@@ -27,7 +27,7 @@ import { CPSession } from '../store/documentManagement';
export class AuthService {
userData$ = new BehaviorSubject<any>('');
userId$ = new BehaviorSubject<any>('');
headers: HttpHeaders = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });
headers: HttpHeaders = new HttpHeaders();
public wsValidatedUserChat: any;
public isWsAuthenticated: boolean = false;
opts: any;
@@ -169,6 +169,7 @@ export class AuthService {
if (SessionStore.user.ChatData?.data) {
this.RochetChatConnectorService.connect();
this.RochetChatConnectorService.login().then((message: any) => {
console.log('Chat login',message )
SessionStore.user.RochetChatUserId = message.result.id
SessionStore.save()