sven09
BABetter Auth
•Created by sven09 on 4/13/2025 in #help
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
19 replies