Microsoft Graph API Token expiry

I am able to successful call the MSFT Graph API & log a user in however the token seems to expire randomly which isn’t great.

Any help appreciated!

Which plugin are you using? Is it Pathfix plugin?

No have connected the graph api in the bubble api plugin.

Have had it working but the token seems to drop randomly.

Did you correctly added your tenant refresh token endpoint?

@mani2726 thanks for the help here and I believe you are on the right track. Is this something i need to configure in Azure?

I’ve included some screen shots



@mani2726

If i delete the API and rebuild it, it begins works as expected. I’m worried there is still an issue however

hello, iam in the same situation, any help would be appreciated
my calls work, but every +/- 1hour, i need to refresh token ;(
do you mind sharing how you did ? thanks @klobassimon

Try to enable offline_access to the api connector.

Before calling the function ensure the token is valid or not, if not get pass the refresh token to get valid and then call it.

Many many thanks for your reply (im struggling on this one for more than a week ^^)
see attached i have already the offline_access and on the azure portal aswell

“Before calling the function ensure the token is valid or not, if not get pass the refresh token to get valid and then call it.” ==> Not sure to understand ? thank you

Hi @Alter345 please send me a DM and I can help you with this over a call. We will get it working.