@accelbyte/sdk 0.1.1-alpha.47 → 0.1.1-alpha.48

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.1.1-alpha.48 - 2022-12-27
2
+
3
+ - Fix user is unable to activate 2fa with email due to missing `content-type: application/x-www-form-urlencoded`
4
+
1
5
  ### 0.1.1-alpha.47 - 2022-12-22
2
6
 
3
7
  - Fix wrong fields in package.json being deleted
@@ -17928,7 +17928,10 @@ class UsersV4$ {
17928
17928
  postV4UsersMeMfaEmailEnable(data) {
17929
17929
  const params = {};
17930
17930
  const url = '/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/enable'.replace('{namespace}', this.namespace);
17931
- const resultPromise = this.axiosInstance.post(url, data, { params });
17931
+ const resultPromise = this.axiosInstance.post(url, CodeGenUtil.getFormUrlEncodedData(data), {
17932
+ ...params,
17933
+ headers: { ...params.headers, 'content-type': 'application/x-www-form-urlencoded' }
17934
+ });
17932
17935
  return Validate.responseType(() => resultPromise, mod.unknown());
17933
17936
  }
17934
17937
  /**