@axa-fr/react-oidc 6.0.7 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,7 +84,7 @@ function hideTokens(currentDatabaseElement) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const idTokenExpiresAt =(_idTokenPayload && _idTokenPayload.exp) ? _idTokenPayload.exp: Number.MAX_VALUE;
|
|
87
|
-
const accessTokenExpiresAt = (accessTokenPayload && accessTokenPayload.exp)? accessTokenPayload.exp : tokens.
|
|
87
|
+
const accessTokenExpiresAt = (accessTokenPayload && accessTokenPayload.exp)? accessTokenPayload.exp : tokens.issued_at + tokens.expires_in;
|
|
88
88
|
const expiresAt = idTokenExpiresAt < accessTokenExpiresAt ? idTokenExpiresAt : accessTokenExpiresAt;
|
|
89
89
|
secureTokens.expiresAt = expiresAt;
|
|
90
90
|
const body = JSON.stringify(secureTokens);
|
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@ function hideTokens(currentDatabaseElement) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const idTokenExpiresAt =(_idTokenPayload && _idTokenPayload.exp) ? _idTokenPayload.exp: Number.MAX_VALUE;
|
|
87
|
-
const accessTokenExpiresAt = (accessTokenPayload && accessTokenPayload.exp)? accessTokenPayload.exp : tokens.
|
|
87
|
+
const accessTokenExpiresAt = (accessTokenPayload && accessTokenPayload.exp)? accessTokenPayload.exp : tokens.issued_at + tokens.expires_in;
|
|
88
88
|
const expiresAt = idTokenExpiresAt < accessTokenExpiresAt ? idTokenExpiresAt : accessTokenExpiresAt;
|
|
89
89
|
secureTokens.expiresAt = expiresAt;
|
|
90
90
|
const body = JSON.stringify(secureTokens);
|