Skip to content

v0.8.0

Compare
Choose a tag to compare
@brianhelba brianhelba released this 26 Feb 01:42
· 33 commits to master since this release
c06b7e9
  • Breaking Change: OauthClient now requires a URL object as it's first argument.

    • Update existing
      new OauthClient('http://some.url/oauth/', ...
      to
      new OauthClient(new URL('http://some.url/oauth/'), ...
  • Breaking Change: The OauthClient scopes optional argument is now passed via an options object as the third argument.

    • Update existing
      new OauthClient(..., ['read_scope'])
      to
      new OauthClient(..., {scopes: ['read_scope']})
  • Added an OauthClient 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')})
  • Added additional internal validation (with automatic correction) of passed URLs.