I am using Angualr 6 in my app..
my question is.. if the user have been opening the app more that hour, does the following code update the JWT?
constructor(
private firebaseAuth: AngularFireAuth) {
this.user = firebaseAuth.authState;
this.user.subscribe(
(userDetails:any) => {
if (userDetails) {
this.userDetails = userDetails;
//set the JWT variable
this.jwt = userDetails._lat
console.log(this.jwt)
}
else {
this.userDetails = null;
}
this.userAuthDoneSubject.next();
},(error) => {this.userAuthDoneSubject.error("AuthService:error authenticate"); }
);
}