@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.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/CHANGELOG.md +4 -0
- package/README.md +4 -4
- package/dist/index.browser.es.js +6 -7
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +7921 -8155
- package/dist/index.node.es.js +6 -7
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +6 -7
- package/dist/index.node.js.map +1 -1
- package/examples/next/README.md +1 -22
- package/examples/next/yarn.lock +4 -4
- package/examples/node/yarn.lock +4 -4
- package/examples/vite/README.md +13 -0
- package/examples/vite/yarn.lock +4 -4
- package/package.json +1 -1
package/dist/index.node.es.js
CHANGED
|
@@ -12100,7 +12100,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
12100
12100
|
};
|
|
12101
12101
|
|
|
12102
12102
|
/*
|
|
12103
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
12103
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
12104
12104
|
* This is licensed software from AccelByte Inc, for limitations
|
|
12105
12105
|
* and restrictions contact your company contract manager.
|
|
12106
12106
|
*/
|
|
@@ -18811,7 +18811,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
18811
18811
|
var cryptoJs = cryptoJs$1.exports;
|
|
18812
18812
|
|
|
18813
18813
|
/*
|
|
18814
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
18814
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
18815
18815
|
* This is licensed software from AccelByte Inc, for limitations
|
|
18816
18816
|
* and restrictions contact your company contract manager.
|
|
18817
18817
|
*/
|
|
@@ -20292,7 +20292,7 @@ class UserAuthorization {
|
|
|
20292
20292
|
const axios = Network.create(config);
|
|
20293
20293
|
const data = {
|
|
20294
20294
|
grant_type: 'authorization_code',
|
|
20295
|
-
code
|
|
20295
|
+
code,
|
|
20296
20296
|
code_verifier: codeVerifier,
|
|
20297
20297
|
client_id: this.options.clientId,
|
|
20298
20298
|
redirect_uri: this.options.redirectURI
|
|
@@ -20311,9 +20311,8 @@ class UserAuthorization {
|
|
|
20311
20311
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
20312
20312
|
if (!doesMFADataExist)
|
|
20313
20313
|
return;
|
|
20314
|
-
|
|
20315
|
-
const {
|
|
20316
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
20314
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
20315
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
20317
20316
|
if (BrowserHelper.isOnBrowser()) {
|
|
20318
20317
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
20319
20318
|
}
|
|
@@ -39406,7 +39405,7 @@ const PageConfig = mod.object({
|
|
|
39406
39405
|
});
|
|
39407
39406
|
|
|
39408
39407
|
/*
|
|
39409
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
39408
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39410
39409
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39411
39410
|
* and restrictions contact your company contract manager.
|
|
39412
39411
|
*/
|