diff --git a/core/package.json b/core/package.json index 022680d..f7dd7ae 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@crate.ai/discogs-sdk", - "version": "2.4.0", + "version": "2.4.1", "description": "an SDK for the Discogs API", "repository": { "type": "git", diff --git a/core/src/implementations/DefaultOAuthHandler.ts b/core/src/implementations/DefaultOAuthHandler.ts index 9714d9d..9792b0e 100644 --- a/core/src/implementations/DefaultOAuthHandler.ts +++ b/core/src/implementations/DefaultOAuthHandler.ts @@ -45,7 +45,7 @@ export class DefaultOAuthHandler implements OAuthHandler { `OAuth oauth_consumer_key="${this.config.consumerKey}",` + `oauth_nonce="${nonce}",` + `oauth_callback="${encodeURIComponent(this.config.callbackUrl)}",` + - `oauth_signature="${encodeURIComponent(signature)}",` + + `oauth_signature="${signature}",` + `oauth_signature_method="PLAINTEXT",` + `oauth_timestamp="${timestamp}",` + `oauth_version="1.0"`; @@ -120,7 +120,7 @@ export class DefaultOAuthHandler implements OAuthHandler { `oauth_nonce="${nonce}",` + `oauth_token="${requestToken}",` + `oauth_verifier="${params.oauthVerifier}",` + - `oauth_signature="${encodeURIComponent(signature)}",` + + `oauth_signature="${signature}",` + `oauth_signature_method="PLAINTEXT",` + `oauth_timestamp="${timestamp}",` + `oauth_version="1.0"`;