@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.3
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 +8 -0
- package/README.md +5 -5
- 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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### 0.2.0-beta.3 - 2023-02-16
|
|
2
|
+
|
|
3
|
+
- Updated Readme
|
|
4
|
+
|
|
5
|
+
### 0.2.0-beta.2 - 2023-02-16
|
|
6
|
+
|
|
7
|
+
- Further refactor SDK to use `interface` to prevent auto-expansion of types in Visual Studio Code
|
|
8
|
+
|
|
1
9
|
### 0.2.0-beta.1 - 2023-02-15
|
|
2
10
|
|
|
3
11
|
- Release Web SDK as a Beta Version
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# AccelByte Web SDK
|
|
2
2
|
|
|
3
|
-
This folder contains the source code of the AccelByte Web SDK.
|
|
3
|
+
This folder contains the source code of the AccelByte Web SDK. For full documentation open [github.com/AccelByte/accelbyte-web-sdk](https://github.com/AccelByte/accelbyte-web-sdk)
|
|
4
4
|
|
|
5
5
|
## Key directories
|
|
6
6
|
|
|
7
|
-
- [docs](
|
|
8
|
-
- [examples](
|
|
9
|
-
- [src](
|
|
10
|
-
- [test](
|
|
7
|
+
- [docs](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/docs): Markdown documentations of the AccelByte Web SDK.
|
|
8
|
+
- [examples](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/examples): Example usages of the AccelByte Web SDK, such as Node.js® (as a script), Next.js, and vite.
|
|
9
|
+
- [src](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/src): The source files of the AccelByte Web SDK.
|
|
10
|
+
- [test](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/test): The test files of the AccelByte Web SDK.
|
package/dist/index.browser.es.js
CHANGED
|
@@ -8539,7 +8539,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
8539
8539
|
};
|
|
8540
8540
|
|
|
8541
8541
|
/*
|
|
8542
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
8542
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
8543
8543
|
* This is licensed software from AccelByte Inc, for limitations
|
|
8544
8544
|
* and restrictions contact your company contract manager.
|
|
8545
8545
|
*/
|
|
@@ -15259,7 +15259,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
15259
15259
|
var cryptoJs = cryptoJs$1.exports;
|
|
15260
15260
|
|
|
15261
15261
|
/*
|
|
15262
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
15262
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
15263
15263
|
* This is licensed software from AccelByte Inc, for limitations
|
|
15264
15264
|
* and restrictions contact your company contract manager.
|
|
15265
15265
|
*/
|
|
@@ -16740,7 +16740,7 @@ class UserAuthorization {
|
|
|
16740
16740
|
const axios = Network.create(config);
|
|
16741
16741
|
const data = {
|
|
16742
16742
|
grant_type: 'authorization_code',
|
|
16743
|
-
code
|
|
16743
|
+
code,
|
|
16744
16744
|
code_verifier: codeVerifier,
|
|
16745
16745
|
client_id: this.options.clientId,
|
|
16746
16746
|
redirect_uri: this.options.redirectURI
|
|
@@ -16759,9 +16759,8 @@ class UserAuthorization {
|
|
|
16759
16759
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
16760
16760
|
if (!doesMFADataExist)
|
|
16761
16761
|
return;
|
|
16762
|
-
|
|
16763
|
-
const {
|
|
16764
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
16762
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
16763
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
16765
16764
|
if (BrowserHelper.isOnBrowser()) {
|
|
16766
16765
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
16767
16766
|
}
|
|
@@ -39725,7 +39724,7 @@ const PageConfig = mod.object({
|
|
|
39725
39724
|
});
|
|
39726
39725
|
|
|
39727
39726
|
/*
|
|
39728
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
39727
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39729
39728
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39730
39729
|
* and restrictions contact your company contract manager.
|
|
39731
39730
|
*/
|