We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ded9d commit 462bdbbCopy full SHA for 462bdbb
frontend/src/Auth.js
@@ -8,7 +8,7 @@ class Auth {
8
audience: 'https://bk-tmp.auth0.com/userinfo',
9
clientID: 'PVafIu9Q5QN65DiPByAFvCCJryY7n432',
10
redirectUri: 'http://localhost:3000/callback',
11
- responseType: 'token id_token',
+ responseType: 'id_token',
12
scope: 'openid profile'
13
});
14
@@ -48,11 +48,11 @@ class Auth {
48
})
49
}
50
51
- setSession(authResult, step) {
+ setSession(authResult) {
52
this.idToken = authResult.idToken;
53
this.profile = authResult.idTokenPayload;
54
// set the time that the id token will expire at
55
- this.expiresAt = authResult.expiresIn * 1000 + new Date().getTime();
+ this.expiresAt = authResult.idTokenPayload.exp * 1000;
56
57
58
signOut() {
0 commit comments