Lifetime validation failed, the token is expired.

Abhishek Shrivastav 0 Reputation points
2025-02-13T10:12:34.84+00:00

hi team,

we are getting error "Lifetime validation failed, the token is expired." from microsoft graph api. access_token, refresh_token both and id_token all are valid for user.

ExeptionType => Microsoft.Graph.Models.ODataErrors.ODataError

Stack track =>

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<ThrowIfFailedResponse>d__28.MoveNext()`` ``--- End of stack trace from previous location where exception was thrown ---`` ``at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()`` ``at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)`` ``` at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__201.MoveNext() ``--- End of stack trace from previous location where exception was thrown ---`` ``at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()`` at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__201.MoveNext() ``` ``--- End of stack trace from previous location where exception was thrown ---`` ``at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()`` ``at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)`` ``at Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder.<GetAsync>d__8.MoveNext()

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,050 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,425 Reputation points Microsoft Vendor
    2025-02-14T09:10:47.6933333+00:00

    Hi Abhishek Shrivastav,

    Thanks for reaching out to Microsoft!

    "Lifetime validation failed; the token is expired" suggests that the user's authentication token has become invalid due to its expiration. This situation occurs when the token isn't renewed promptly. You can check the expiration date/time of the token by decoding the token using jwt.io

    User's image Similar posts: https://learn.microsoft.com/en-us/answers/questions/1330175/lifetime-validation-failed-the-token-is-expired

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.