XeroAPI / xero-node-oauth2-app

NodeJS app for demonstrating the xero-node v4 SDK
MIT License
38 stars 43 forks source link

Refresh token without openid #44

Closed SerKnight closed 4 years ago

SerKnight commented 4 years ago

Sample implementation of ( https://github.com/XeroAPI/xero-node/pull/405 )

Enables the developers who already have a valid tokenSet ( refresh token ) for a given user, not to go through the whole client initialization that is required for to build the authorizationUrl, and use the convenience methods through the oauth2 dependency openid-client.

Example shows the 2 ways you can now refresh.

Based on community feedback 🙏

SerKnight commented 4 years ago

Accompanying code work to show how this PR works https://github.com/XeroAPI/xero-node/releases/tag/4.5.1