Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Outline of logic

SaveAccessToken.js

This code works at the /token API endpoint.

  • It adds an event listener to the Try IT button.
  • When button is clicked the code waits a second for the access token to be generate.
  • After waiting the code searches the page for the access token and then saves it to local storage.
  • Code will update local storage every time the Try IT button is clicked and the access token changes.

Example endpoint: https://jim-group-sandbox.readme.io/reference/token-1

UseAccessToken.js

This code retrieves the access token from local storage and uses it for subsequent API calls from all other API endpoints. (excluding the /token endpoint).

  • Waits for page elements to load.
  • Add the access token from local storage into OAuth2 Bearer token part of the page.
  • Adding this should update the request generate with the access token.

Example endpoing: https://jim-group-sandbox.readme.io/reference/listconnectionpaths

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages