Hello Jason Leung,
Thank you for reaching out to Microsoft!!
When you use a delegated permission with a personal account, the authentication process typically involves obtaining an access token and a refresh token. The access token is short-lived (usually around an hour), while the refresh token can be used to obtain new access tokens without requiring the user to re-authenticate.
For the query how could you know the actual expiration time of your cached access token - To know the actual expiration time of your cached access token, you can inspect the token itself. Access tokens issued by Microsoft Graph API include information about their expiration time in the exp
claim.
Use a JWT (JSON web Token) decoder i.e.jwt.ms or jwt.io to view the token's contents.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.