@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.js
CHANGED
|
@@ -12102,7 +12102,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
12102
12102
|
};
|
|
12103
12103
|
|
|
12104
12104
|
/*
|
|
12105
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
12105
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
12106
12106
|
* This is licensed software from AccelByte Inc, for limitations
|
|
12107
12107
|
* and restrictions contact your company contract manager.
|
|
12108
12108
|
*/
|
|
@@ -18813,7 +18813,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
18813
18813
|
var cryptoJs = cryptoJs$1.exports;
|
|
18814
18814
|
|
|
18815
18815
|
/*
|
|
18816
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
18816
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
18817
18817
|
* This is licensed software from AccelByte Inc, for limitations
|
|
18818
18818
|
* and restrictions contact your company contract manager.
|
|
18819
18819
|
*/
|
|
@@ -20294,7 +20294,7 @@ class UserAuthorization {
|
|
|
20294
20294
|
const axios = Network.create(config);
|
|
20295
20295
|
const data = {
|
|
20296
20296
|
grant_type: 'authorization_code',
|
|
20297
|
-
code
|
|
20297
|
+
code,
|
|
20298
20298
|
code_verifier: codeVerifier,
|
|
20299
20299
|
client_id: this.options.clientId,
|
|
20300
20300
|
redirect_uri: this.options.redirectURI
|
|
@@ -20313,9 +20313,8 @@ class UserAuthorization {
|
|
|
20313
20313
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
20314
20314
|
if (!doesMFADataExist)
|
|
20315
20315
|
return;
|
|
20316
|
-
|
|
20317
|
-
const {
|
|
20318
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
20316
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
20317
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
20319
20318
|
if (BrowserHelper.isOnBrowser()) {
|
|
20320
20319
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
20321
20320
|
}
|
|
@@ -39408,7 +39407,7 @@ const PageConfig = mod.object({
|
|
|
39408
39407
|
});
|
|
39409
39408
|
|
|
39410
39409
|
/*
|
|
39411
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
39410
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39412
39411
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39413
39412
|
* and restrictions contact your company contract manager.
|
|
39414
39413
|
*/
|