implement refresh token
This commit is contained in:
@@ -61,7 +61,8 @@ export class ProfilInformationComponent {
|
||||
ngOnInit(): void {
|
||||
this.storedData = JSON.parse(localStorage.getItem("account_info"));
|
||||
this.currentUser = JSON.parse(localStorage.getItem("currentUser"));
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
|
||||
this.profilInfo = this.formBuilder.group({
|
||||
firstName: ["", Validators.required],
|
||||
|
||||
@@ -40,7 +40,8 @@ export class UpdatePasswordComponent {
|
||||
|
||||
ngOnInit(): void {
|
||||
this.storedData = JSON.parse(localStorage.getItem("account_info"));
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.profilInfo = this.formBuilder.group({
|
||||
userid: this.storedData.sub,
|
||||
currentPass: [""],
|
||||
|
||||
Reference in New Issue
Block a user