@swp/swipe-sdk
Advanced tools
Comparing version
@@ -36,4 +36,3 @@ "use strict"; | ||
Authorization: 'Basic' + ' ' + this.createAuthorization(apiKey, secret), | ||
'content-type': 'application/x-www-form-urlencoded', | ||
'Access-Control-Allow-Origin': '', | ||
'content-type': 'application/x-www-form-urlencoded' | ||
} | ||
@@ -40,0 +39,0 @@ }); |
export interface Token { | ||
accessToken: string; | ||
tokenType: 'bearer'; | ||
expiresIn: number; | ||
access_token: string; | ||
token_type: 'bearer'; | ||
expires_in: number; | ||
} |
@@ -16,3 +16,3 @@ "use strict"; | ||
static buildHeaderExtra(token) { | ||
return { Authorization: 'Bearer ' + token.accessToken }; | ||
return { Authorization: 'Bearer ' + token.access_token }; | ||
} | ||
@@ -19,0 +19,0 @@ async get(path, options) { |
@@ -79,3 +79,3 @@ "use strict"; | ||
serviceProxy.withToken({ | ||
accessToken | ||
access_token: accessToken | ||
}); | ||
@@ -82,0 +82,0 @@ return service; |
{ | ||
"name": "@swp/swipe-sdk", | ||
"version": "0.12.39", | ||
"version": "0.12.40", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1098707
05988
-0.02%