mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Bug session expired resolved
This commit is contained in:
@@ -350,4 +350,22 @@ export class ChatService {
|
||||
|
||||
}
|
||||
|
||||
refreshtoken(){
|
||||
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 => {
|
||||
let data = {
|
||||
status: res['status'],
|
||||
data: {
|
||||
userId: res['data'].userId,
|
||||
authToken: res['data'].authToken }
|
||||
}
|
||||
SessionStore.user.ChatData = data
|
||||
console.log(res)
|
||||
console.log(SessionStore.user.ChatData)
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user