Better AuthBA
Better Authβ€’9mo ago
sven09

RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15

Hey, i am struggling to trigger the refreshAccesstoken for Microsoft.
Single Sign on works fine, i got an accesstoken and an accessTokenExpiresAt and a refreshtoken.

But how do i trigger to refresh the accesstoken automatically refreshed in when it is expired.
I thought, this is done automatically.

In need the accesstoken to be updated silently because i am calling some functionality on Azure and need it as bearer.

What is the best way to trigger / monitor this?

Many thanks for your help

Kind Regards
Sven
Was this page helpful?