Especific route on click for pushNotification

This commit is contained in:
Eudes Inácio
2021-02-01 09:58:15 +01:00
parent 81b374f8f6
commit 95d2736370
3 changed files with 46 additions and 11 deletions
+8 -1
View File
@@ -82,7 +82,13 @@ export class LoginPage implements OnInit {
this.storageService.store(this.username, token.value);
this.storageService.get(this.username).then(value => {
console.log('STORAGE TOKEN',value )
})
this.storageService.get(AuthConnstants.USER).then(res=>{
console.log('USERID',res);
});
});
},
);
@@ -103,6 +109,7 @@ export class LoginPage implements OnInit {
if (await this.authService.login(this.userattempt)) {
/* this.loginRocketChat(); */
this.storeUserIdANdToken()
this.router.navigate(['/home/events']);
}
else {