Hi @Utkarsh Prashar
Access tokens expire for security reasons. Azure AD access tokens have a default validity period (usually 1 hour). Once expired, you need to re-authenticate to obtain a new token. Doing this prevents the same token from being used for an extended period of time, thereby reducing the risk of misappropriation.
You can also use refresh tokens to renew new access tokens. Refresh tokens allow you to obtain new access tokens without user interaction to avoid frequent user login authentication. Refresh tokens have a lifespan of up to 90 days.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.