This commit is contained in:
Peter Maquiran
2022-08-10 14:24:45 +01:00
parent 90296bf577
commit c50c2f866d
7 changed files with 21 additions and 33 deletions
+2 -2
View File
@@ -359,14 +359,14 @@ export class ChatService {
}
}
refreshtoken() {
async refreshtoken() {
if(this.headers) {
this.headers = this.headers.set('Authorization', SessionStore.user.BasicAuthKey);
let options = {
headers: this.headers
};
return this.http.get(environment.apiURL + 'UserAuthentication/RegenereChatToken', options).subscribe(async res => {
return await this.http.get(environment.apiURL + 'UserAuthentication/RegenereChatToken', options).subscribe(async res => {
let data = {
status: res['status'],
data: {