This commit is contained in:
tiago.kayaya
2022-02-17 10:48:37 +01:00
34 changed files with 333 additions and 285 deletions
+3 -3
View File
@@ -228,7 +228,7 @@ export class AuthService {
}, 1) */
}
autologout(expirationDate:number){
autologout(expirationDate:number) {
setTimeout(()=>{
this.logout();
}, expirationDate)
@@ -248,13 +248,13 @@ export class AuthService {
}
//Get user data from RocketChat | global object
getUserData(){
getUserData() {
this.storageService.get(AuthConnstants.AUTH).then(res=>{
this.userData$.next(res);
});
}
logoutChat(){
logoutChat() {
//this.storageService.clear();
/* this.storageService.removeStorageItem(AuthConnstants.AUTH).then(res =>{
this.userData$.next('');