Skip to content

Commit 0ae9150

Browse files
author
Bruno Krebs
committed
removing useless parameter and fixing code related to the expiration of id tokens;
1 parent 16ded9d commit 0ae9150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/Auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class Auth {
4848
})
4949
}
5050

51-
setSession(authResult, step) {
51+
setSession(authResult) {
5252
this.idToken = authResult.idToken;
5353
this.profile = authResult.idTokenPayload;
5454
// set the time that the id token will expire at
55-
this.expiresAt = authResult.expiresIn * 1000 + new Date().getTime();
55+
this.expiresAt = authResult.idTokenPayload.exp * 1000;
5656
}
5757

5858
signOut() {

0 commit comments

Comments
 (0)