v0.8.0
-
Breaking Change:
OauthClient
now requires aURL
object as it's first argument.- Update existing
to
new OauthClient('http://some.url/oauth/', ...
new OauthClient(new URL('http://some.url/oauth/'), ...
- Update existing
-
Breaking Change: The
OauthClient
scopes
optional argument is now passed via an options object as the third argument.- Update existing
to
new OauthClient(..., ['read_scope'])
new OauthClient(..., {scopes: ['read_scope']})
- Update existing
-
Added an
OauthClient
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:
-
Added additional internal validation (with automatic correction) of passed URLs.