expiresOn recorded inconsistently? #7371
Labels
bug
A problem that needs to be fixed for the feature to function as intended.
msal-node
Related to msal-node package
msal-node-extensions
Related to msal-node-extensions package
public-client
Issues regarding PublicClientApplications
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
2.13.1
Wrapper Library
MSAL Node Extensions (@azure/msal-node-extensions)
Wrapper Library Version
1.1.0
Public or Confidential Client?
Public
Description
Hi! Why is expiresOn occasionally returned in milliseconds and sometimes in seconds?
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
It seems like the MSAL functions PublicClientApplication.acquireTokenByUsernamePassword() and PublicClientApplication.acquireTokenInteractive() return tokens with expiry times measured in milliseconds and seconds since Epoch, respectively.
Expected Behavior
expiresOn measured consistently
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
None (Server)
Regression
No response
Source
Internal (Microsoft)
The text was updated successfully, but these errors were encountered: