Microsoft Teams Graph OAuth token always expires in one hour

garrett-button
Tera Contributor

I'm trying to set up the teams and teams graph spokes. When I set up the teams spoke and use my oauth access token, it shows it will expire in three month, just like I set. 

 

When I use the same token in the Teams Graph, it tells me it will expire in one hour. I've been looking for a reason, but can't seem to find one. Any idea why this might happen?

1 REPLY 1

J Siva
Tera Sage

Hi @garrett-button 

I believe that's the expected behaviour. 

Everytime an API call is made, system first checks the access token. If the access token is already expired, then it'll automatically send requests to the token url to fetch the valid access token. So there is no manual intervention required here. 

This's how it works. (Atleast in MS intune integration)

 

Hope this helps.

Regards,

Siva