Lifetime validation failed, the token is expired.

Muthu Vel 25 Reputation points
2023-07-14T11:52:26.8066667+00:00

We have used created a app with Application Permission & Using MS Graph API.

Once get the access from customer, After 5-6Days the below error raised.

{'response': {'error': {'code': 'InvalidAuthenticationToken', 'message': 'Lifetime validation failed, the token is expired.', 'innerError': {'date': '2023-06-02T06:42:02', 'request-id': 'f4de56ef-1a4a-416f-83a8-b30f773d0a3e', 'client-request-id': 'f4de56ef-1a4a-416f-83a8-b30f773d0a3e'}}}
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2023-08-14T18:59:24.62+00:00

    @Muthu Vel

    Thank you for your post and I apologize for the delayed response!

    Error Message: InvalidAuthenticationToken - Lifetime validation failed, the token is expired.

    I understand that you created an application with the appropriate permissions and when using the MS Graph API, after a period of 5-6 days, you're running into the error message above. To hopefully help point you in the right direction or resolve your issue, I'll share my findings below.


    Findings:

    From the error message that you received; this is indicating that the user's authentication token has expired, which can happen if the token isn't refreshed in a timely manner. For more info.

    To resolve this, please try refreshing the authentication token before making your API call. Additionally, you can also check the expiration time of the token and make sure to refresh it before it expires.

    User's image


    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.