Syntarex
BABetter Auth
•Created by sven09 on 4/13/2025 in #help
RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15
Ah that makes sense! Thanks! 🙂
19 replies
BABetter Auth
•Created by Syntarex on 4/14/2025 in #help
On-User-Behalf flow (Microsoft Entra)
So I switched over to Lucia and got it working.
I was following another help thread in here, which got a similar problem. You might find your solution here @mikewilliams : I cannot copy the link.. dont know why. Discord doesn't let me. The thread is called "RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15"
7 replies
BABetter Auth
•Created by Syntarex on 4/14/2025 in #help
On-User-Behalf flow (Microsoft Entra)
After sleeping I realized that the User-Object is not the right place to save tokens. Saving it in there would mean that a user can only have one token.
I will start trying now. 🙂
7 replies
BABetter Auth
•Created by Syntarex on 4/14/2025 in #help
On-User-Behalf flow (Microsoft Entra)
I will grind for the solution tomorrow. If I get it working, I wll post my solution here. 🙂
7 replies
BABetter Auth
•Created by Syntarex on 4/14/2025 in #help
On-User-Behalf flow (Microsoft Entra)
Oh I might learned more. The getUserInfo function returns the object which gets saved to my database. so I can just add an additionalField containing my accessToken and use that on server- and client-side to call graph on-user-behalf.
I'm wondering if the accessToken will be refreshed before it expires. I dont know when the getUserInfo function gets triggered. Only on login?
7 replies
BABetter Auth
•Created by sven09 on 4/13/2025 in #help
RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15
Ah that would be awesome. 🙂
19 replies
BABetter Auth
•Created by sven09 on 4/13/2025 in #help
RefressAcceshToken in SocialProvider (Microsoft) and NextJs 15
Hi Sven! I'm curious on how you got the Microsoft AccessToken. Im trying to get it too so I can call Graph on User behalf.
19 replies