@turnkey/react-wallet-kit 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/providers/client/Provider.d.ts.map +1 -1
- package/dist/providers/client/Provider.js +60 -60
- package/dist/providers/client/Provider.js.map +1 -1
- package/dist/providers/client/Provider.mjs +7 -7
- package/dist/providers/client/Provider.mjs.map +1 -1
- package/dist/utils/oauth/config.d.ts +7 -1
- package/dist/utils/oauth/config.d.ts.map +1 -1
- package/dist/utils/oauth/config.js +11 -1
- package/dist/utils/oauth/config.js.map +1 -1
- package/dist/utils/oauth/config.mjs +12 -2
- package/dist/utils/oauth/config.mjs.map +1 -1
- package/dist/utils/oauth/url.d.ts +3 -0
- package/dist/utils/oauth/url.d.ts.map +1 -1
- package/dist/utils/oauth/url.js +47 -0
- package/dist/utils/oauth/url.js.map +1 -1
- package/dist/utils/oauth/url.mjs +65 -3
- package/dist/utils/oauth/url.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -4,8 +4,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { sha256 } from '@noble/hashes/sha2';
|
|
5
5
|
import { bytesToHex } from '@noble/hashes/utils';
|
|
6
6
|
import { storePKCEVerifier, storeOAuthCaptchaToken, storeOAuthAddProviderMetadata, clearAllOAuthData, getOAuthAddProviderMetadata, hasPKCEVerifier, OAUTH_INTENT_ADD_PROVIDER } from '../../utils/oauth/storage.mjs';
|
|
7
|
-
import '../../utils/oauth/config.mjs';
|
|
8
|
-
import { parseOAuthResponse, openOAuthPopup, buildOAuthUrl, redirectToOAuthProvider, cleanupOAuthUrlPreserveSearch, cleanupOAuthUrl } from '../../utils/oauth/url.mjs';
|
|
7
|
+
import { OAUTH_PROVIDER_CONFIGS } from '../../utils/oauth/config.mjs';
|
|
8
|
+
import { isExpectedOAuthRedirectUrl, parseOAuthResponse, openOAuthPopup, buildOAuthUrl, redirectToOAuthProvider, cleanupOAuthUrlPreserveSearch, cleanupOAuthUrl } from '../../utils/oauth/url.mjs';
|
|
9
9
|
import { completeOAuthPopup, completeOAuthFlow, completePKCEFlow } from '../../utils/oauth/completion.mjs';
|
|
10
10
|
import { generateChallengePair, exchangeFacebookCodeForToken } from '../../utils/oauth/pkce.mjs';
|
|
11
11
|
import { capitalizeProviderName, getProviderIcon } from '../../utils/oauth/helpers.mjs';
|
|
@@ -4100,7 +4100,7 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
4100
4100
|
return;
|
|
4101
4101
|
}
|
|
4102
4102
|
var url = authWindow.location.href || "";
|
|
4103
|
-
if (url.
|
|
4103
|
+
if (isExpectedOAuthRedirectUrl(url, redirectUri, OAUTH_PROVIDER_CONFIGS[provider].expectedResponseMode)) {
|
|
4104
4104
|
var result = parseOAuthResponse(url, provider);
|
|
4105
4105
|
if (result) {
|
|
4106
4106
|
authWindow.close();
|
|
@@ -4256,7 +4256,7 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
4256
4256
|
return;
|
|
4257
4257
|
}
|
|
4258
4258
|
var url = authWindow.location.href || "";
|
|
4259
|
-
if (url.
|
|
4259
|
+
if (isExpectedOAuthRedirectUrl(url, redirectUri, OAUTH_PROVIDER_CONFIGS[provider].expectedResponseMode)) {
|
|
4260
4260
|
var result = parseOAuthResponse(url, provider);
|
|
4261
4261
|
if (result) {
|
|
4262
4262
|
authWindow.close();
|
|
@@ -4403,7 +4403,7 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
4403
4403
|
return;
|
|
4404
4404
|
}
|
|
4405
4405
|
var url = authWindow.location.href || "";
|
|
4406
|
-
if (url.
|
|
4406
|
+
if (isExpectedOAuthRedirectUrl(url, redirectUri, OAUTH_PROVIDER_CONFIGS[provider].expectedResponseMode)) {
|
|
4407
4407
|
var result = parseOAuthResponse(url, provider);
|
|
4408
4408
|
if (result) {
|
|
4409
4409
|
authWindow.close();
|
|
@@ -4523,7 +4523,7 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
4523
4523
|
return;
|
|
4524
4524
|
}
|
|
4525
4525
|
var url = authWindow.location.href || "";
|
|
4526
|
-
if (url.
|
|
4526
|
+
if (isExpectedOAuthRedirectUrl(url, redirectUri, OAUTH_PROVIDER_CONFIGS[provider].expectedResponseMode)) {
|
|
4527
4527
|
var result = parseOAuthResponse(url, provider);
|
|
4528
4528
|
if (result) {
|
|
4529
4529
|
authWindow.close();
|
|
@@ -4652,7 +4652,7 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
4652
4652
|
return;
|
|
4653
4653
|
}
|
|
4654
4654
|
var url = authWindow.location.href || "";
|
|
4655
|
-
if (url.
|
|
4655
|
+
if (isExpectedOAuthRedirectUrl(url, redirectUri, OAUTH_PROVIDER_CONFIGS[provider].expectedResponseMode)) {
|
|
4656
4656
|
var result = parseOAuthResponse(url, provider);
|
|
4657
4657
|
if (result) {
|
|
4658
4658
|
authWindow.close();
|