@wix/api-client
Advanced tools
Comparing version 1.1.68 to 1.1.69
@@ -20,5 +20,5 @@ "use strict"; | ||
json: () => Promise.resolve({ | ||
accessToken: _constants.VALID_TOKEN, | ||
refreshToken: 'some-refreshToken', | ||
expiresIn: 3600, | ||
access_token: _constants.VALID_TOKEN, | ||
refresh_token: 'some-refreshToken', | ||
expires_in: 3600, | ||
redirectSession: { | ||
@@ -25,0 +25,0 @@ fullUrl: 'https://redirect.com' |
@@ -153,5 +153,5 @@ "use strict"; | ||
}, | ||
accessToken: _constants.VALID_TOKEN, | ||
refreshToken: 'some-refreshToken', | ||
expiresIn: 3600 | ||
access_token: _constants.VALID_TOKEN, | ||
refresh_token: 'some-refreshToken', | ||
expires_in: 3600 | ||
}) | ||
@@ -158,0 +158,0 @@ })); |
@@ -76,5 +76,5 @@ "use strict"; | ||
return { | ||
accessToken: (0, _tokenHelpers.createAccessToken)(tokensResponse.accessToken, tokensResponse.expiresIn), | ||
accessToken: (0, _tokenHelpers.createAccessToken)(tokensResponse.access_token, tokensResponse.expires_in), | ||
refreshToken: { | ||
value: tokensResponse.refreshToken, | ||
value: tokensResponse.refresh_token, | ||
role: _types.TokenRole.VISITOR | ||
@@ -89,3 +89,3 @@ } | ||
}); | ||
const accessToken = (0, _tokenHelpers.createAccessToken)(tokensResponse.accessToken, tokensResponse.expiresIn); | ||
const accessToken = (0, _tokenHelpers.createAccessToken)(tokensResponse.access_token, tokensResponse.expires_in); | ||
return { | ||
@@ -179,5 +179,5 @@ accessToken, | ||
return { | ||
accessToken: (0, _tokenHelpers.createAccessToken)(tokensResponse.accessToken, tokensResponse.expiresIn), | ||
accessToken: (0, _tokenHelpers.createAccessToken)(tokensResponse.access_token, tokensResponse.expires_in), | ||
refreshToken: { | ||
value: tokensResponse.refreshToken, | ||
value: tokensResponse.refresh_token, | ||
role: _types.TokenRole.MEMBER | ||
@@ -184,0 +184,0 @@ } |
@@ -18,5 +18,5 @@ import { cart } from '@wix/ecom'; | ||
json: () => Promise.resolve({ | ||
accessToken: VALID_TOKEN, | ||
refreshToken: 'some-refreshToken', | ||
expiresIn: 3600, | ||
access_token: VALID_TOKEN, | ||
refresh_token: 'some-refreshToken', | ||
expires_in: 3600, | ||
redirectSession: { | ||
@@ -23,0 +23,0 @@ fullUrl: 'https://redirect.com' |
@@ -149,5 +149,5 @@ import { createClient } from '../wixClient'; | ||
}, | ||
accessToken: VALID_TOKEN, | ||
refreshToken: 'some-refreshToken', | ||
expiresIn: 3600 | ||
access_token: VALID_TOKEN, | ||
refresh_token: 'some-refreshToken', | ||
expires_in: 3600 | ||
}) | ||
@@ -154,0 +154,0 @@ })); |
@@ -71,5 +71,5 @@ import { createClient } from '../../wixClient'; | ||
return { | ||
accessToken: createAccessToken(tokensResponse.accessToken, tokensResponse.expiresIn), | ||
accessToken: createAccessToken(tokensResponse.access_token, tokensResponse.expires_in), | ||
refreshToken: { | ||
value: tokensResponse.refreshToken, | ||
value: tokensResponse.refresh_token, | ||
role: TokenRole.VISITOR | ||
@@ -84,3 +84,3 @@ } | ||
}); | ||
const accessToken = createAccessToken(tokensResponse.accessToken, tokensResponse.expiresIn); | ||
const accessToken = createAccessToken(tokensResponse.access_token, tokensResponse.expires_in); | ||
return { | ||
@@ -174,5 +174,5 @@ accessToken, | ||
return { | ||
accessToken: createAccessToken(tokensResponse.accessToken, tokensResponse.expiresIn), | ||
accessToken: createAccessToken(tokensResponse.access_token, tokensResponse.expires_in), | ||
refreshToken: { | ||
value: tokensResponse.refreshToken, | ||
value: tokensResponse.refresh_token, | ||
role: TokenRole.MEMBER | ||
@@ -179,0 +179,0 @@ } |
@@ -6,2 +6,9 @@ import { IOAuthStrategy, Tokens } from './types'; | ||
}): IOAuthStrategy; | ||
export interface TokenResponse { | ||
access_token: string; | ||
expires_in: number; | ||
refresh_token: string | null; | ||
token_type: string; | ||
scope?: string | null; | ||
} | ||
//# sourceMappingURL=OAuthStrategy.d.ts.map |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.1.68", | ||
"version": "1.1.69", | ||
"license": "UNLICENSED", | ||
@@ -35,3 +35,3 @@ "author": { | ||
"@wix/redirects": "^1.0.13", | ||
"@wix/sdk-types": "1.1.68", | ||
"@wix/sdk-types": "1.1.69", | ||
"pkce-challenge": "^3.1.0", | ||
@@ -75,3 +75,3 @@ "querystring": "^0.2.1", | ||
}, | ||
"falconPackageHash": "af629090699875d2fa5f699bb99a203a8f075e19683777b22194aa26" | ||
"falconPackageHash": "1ded8d2f8b9f925d9ab1bf82e3686057ec4ab2ae0218bcdb99a69427" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
471710
3623
+ Added@wix/sdk-types@1.1.69(transitive)
- Removed@wix/sdk-types@1.1.68(transitive)
Updated@wix/sdk-types@1.1.69