I have a web API we are interfacing with that uses oauth2. We are using the API to pull data into Perspective to merge the cloud app data with some of our on-prem data.
Its fairly simple to get the tokens, but I was wondering if anyone has any experience or best practices with either functions they build to manage the creation of an access token (and refresh) or use a library to do this auth and management of the tokens.