Skip to content

Commit

Permalink
Updated data sent to backend on refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPienaar committed Jul 11, 2023
1 parent c2c6620 commit 329dd26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/app/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class UserService {
private isAuthenticated: boolean = false;
private authToken: string | undefined = undefined;
private userID: number | undefined = undefined;
private expiresAt: string | Date | number | undefined = undefined;
private expiresAt: Date | undefined = undefined;
private email: string | undefined = undefined;
private firstName: string | undefined = undefined;
private doExpirationCheck: boolean = false;
Expand Down Expand Up @@ -270,7 +270,10 @@ export class UserService {
const body = new RefreshTokenDTO();
body.UserID = this.userID;
body.Token = this.authToken;
body.Email = this.email;
body.ExpiresAt = this.expiresAt;

console.log('Body: '+JSON.stringify(body));
const headers = new HttpHeaders().set(
'Authorization',
'Bearer ' + this.authToken
Expand Down

0 comments on commit 329dd26

Please sign in to comment.