Skip to content

v0.7.0

Compare
Choose a tag to compare
@brianhelba brianhelba released this 28 Feb 22:40
· 4 commits to master since this release
7361554
  • Breaking Change: Using IsicClient with a different origin server is now configured via an options object as the second argument. The origin server must also be specified as a URL object.

    • Update existing
      new IsicClient(..., 'https://api-sandbox.isic-archive.com/')
      to
      new IsicClient(..., {isicOrigin: new URL('https://api-sandbox.isic-archive.com/')})
  • Added an IsicClient option for scopes, to specify OAuth2 scopes to submit to the server. This defaults to an empty value.

    • Use this like:
      new OauthClient(..., {scopes: ['identity']})
  • Added an IsicClient option for redirectUrl, to specify the OAuth2 Redirect URI to submit to the server. This defaults to the current URL.

    • Use this like:
      new OauthClient(..., {redirectUrl: new URL('http://some.url/oauth-landing')})