Forum Discussion
David_Elsner
Oct 05, 2024Brass Contributor
Get refresh token of Teams Desktop of the current user
The Teams client must store access and refresh tokens somewhere (probably encrypted in the local or session storage of the underlying browser) I am wondering, if there is a way to read those tokens,...
Nivedipa-MSFT
Microsoft
Oct 14, 2024David_Elsner - Could you please share your valuable feedback via Microsoft Teams Developer Feedback link.
David_Elsner
Oct 16, 2024Brass Contributor
Nivedipa-MSFT Thanks for your feedback.
I am and was always aware that its not a good practice to use a refresh token for my use case.
However, what I need to do is not available in the Graph.
I want to add a cloud storage (or add document library) to a teams channel (no tab!), that users can navigate to it easily from within the channel.
That's currently not supported with the Graph, only via the unofficial teams API.
To call this API, I need always a user context (no client credential flow possible)
So I am forced to a bad practice if I want to do what I need.
So yes: Its a bad practice
But no: A "good practice" seems not to exist here.
- David_ElsnerOct 16, 2024Brass ContributorOthers also use it: https://digitalworkplace365.wordpress.com/2021/01/04/using-the-ms-teams-native-api-end-points/