@wix/api-client
Advanced tools
Comparing version 1.1.48 to 1.1.49
@@ -106,4 +106,4 @@ "use strict"; | ||
}; | ||
const getMemberTokens = async (hash, state) => { | ||
const params = new URLSearchParams(hash.substring(1)); | ||
const getMemberTokens = async state => { | ||
const params = new URLSearchParams(window.location.hash.substring(1)); | ||
const code = params.get('code'); | ||
@@ -110,0 +110,0 @@ const stateParam = params.get('state'); |
@@ -101,4 +101,4 @@ import { createClient } from '../wixClient'; | ||
}; | ||
const getMemberTokens = async (hash, state) => { | ||
const params = new URLSearchParams(hash.substring(1)); | ||
const getMemberTokens = async state => { | ||
const params = new URLSearchParams(window.location.hash.substring(1)); | ||
const code = params.get('code'); | ||
@@ -105,0 +105,0 @@ const stateParam = params.get('state'); |
@@ -30,3 +30,3 @@ export interface Tokens { | ||
signInWithRedirect: (state: OauthRedirectState) => Promise<any>; | ||
getMemberTokens: (query: string, state: OauthRedirectState) => Promise<Tokens>; | ||
getMemberTokens: (state: OauthRedirectState) => Promise<Tokens>; | ||
logout: (redirectUrl: string) => Promise<{ | ||
@@ -33,0 +33,0 @@ url: string; |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.1.48", | ||
"version": "1.1.49", | ||
"license": "UNLICENSED", | ||
@@ -34,3 +34,3 @@ "author": { | ||
"@wix/redirects-api": "^1.0.19", | ||
"@wix/sdk-types": "^1.1.48", | ||
"@wix/sdk-types": "^1.1.49", | ||
"pkce-challenge": "^3.1.0", | ||
@@ -74,3 +74,3 @@ "querystring": "^0.2.1", | ||
}, | ||
"falconPackageHash": "62133461749f192f41b56bdd0e4bd1fc5bf5ee831e67772684f531cf" | ||
"falconPackageHash": "0e93f64a129367c08fbe356c50b67451217ecc8cab01393fa35cc6f6" | ||
} |
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
356213
106
2605
Updated@wix/sdk-types@^1.1.49