This commit is contained in:
Eudes Inácio
2021-10-14 08:46:42 +01:00
8 changed files with 55 additions and 129 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ export class AuthService {
console.log('Login to Rocket chat OK');
this.ValidatedUserChat = responseChat;
localStorage.setItem('userChat', JSON.stringify(responseChat));
localStorage.setItem('Meteor.loginToken', JSON.stringify(responseChat['data'].userId));
localStorage.setItem('Meteor.userId', JSON.stringify(responseChat['data'].authToken));
localStorage.setItem('Meteor.loginToken', JSON.stringify(responseChat['data'].authToken));
localStorage.setItem('Meteor.userId', JSON.stringify(responseChat['data'].userId));
this.storageService.store(AuthConnstants.AUTH, responseChat);
return true;
}