im trying to create a fetch post api send my data to a third party website they provided me a auth_token i was wondering how do i add that to my code im in desperate need of help at the moment. pls can anyone help me…
See the Google Sheets NPM example. It demonstrates using OAuth 2.0 the writeup includes links to valuable resources, including Using OAuth 2.0 to Access Google APIs Web modules .
Hi Yisrael,
Does the example (or another one) show how to use a 3rd party API where you need to refresh the access token before the refresh token expires? A way to schedule refresh outside of any visit to the site that triggers the 3rd party api calls? This case is for webinar registration to use a Wix hosted form instead of jumping off site to webinar provider. I need to keep the access token valid in between uses – even if it goes a while between form submits.
@kroberts As I recall, the mechanism allows for a refresh, but not sure if the example takes care of this case.
You’ll need to follow the API documentation and Google’s OAuth guide to figure out how to handle this case.