v0.7.0
-
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 aURL
object.- Update existing
to
new IsicClient(..., 'https://api-sandbox.isic-archive.com/')
new IsicClient(..., {isicOrigin: new URL('https://api-sandbox.isic-archive.com/')})
- Update existing
-
Added an
IsicClient
option forscopes
, to specify OAuth2 scopes to submit to the server. This defaults to an empty value.- Use this like:
new OauthClient(..., {scopes: ['identity']})
- Use this like:
-
Added an
IsicClient
option forredirectUrl
, 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')})
- Use this like: