AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.64k stars 2.65k forks source link

Null expiresOn for tokens? #2991

Closed k-mehta closed 3 years ago

k-mehta commented 3 years ago

Library

Description

When can AuthenticationResult.expiresOn be null? I get this object back from handleRedirectPromise, acquireTokenSilent, etc.

const msalConfig: Configuration = {
  auth: {
    clientId: 'XXX',
    authority: 'https://login.microsoftonline.com/consumers/',
    postLogoutRedirectUri: `${window.location.origin}/logout`,
  },
  cache: { cacheLocation: 'localStorage' },
};
pkanher617 commented 3 years ago

@k-mehta I have opened a PR for this, but as it is a breaking change we are looking for the right time to add it to the library. I will try to get this in as soon as possible.

github-actions[bot] commented 3 years ago

This issue has not seen activity in 14 days. If your issue has not been resolved please leave a comment to keep this open. It will be closed in 7 days if it remains stale.

github-actions[bot] commented 3 years ago

This issue has been closed due to inactivity. If this has not been resolved please open a new issue. Thanks!