nextemos 4.4.3 → 4.4.4

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.
@@ -23,18 +23,6 @@ const createUrlEncodedBody = (plainBodyObject) => {
23
23
  exports.KeycloakService = {
24
24
  ServiceUrl: "https://keycloak.proj-e.com",
25
25
  Token: function (data, options) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- // request
28
- const urlencoded = new URLSearchParams();
29
- urlencoded.append('client_id', data.client_id);
30
- urlencoded.append('client_secret', data.client_secret);
31
- urlencoded.append('grant_type', data.grant_type);
32
- return yield (0, __1.fetchRequest)().post(`${this.ServiceUrl}/realms/{REALM_KEY}/protocol/openid-connect/token`.replace(/{REALM_KEY}/g, data.project), Object.assign(Object.assign({}, options), { headers: {
33
- 'Content-Type': 'application/x-www-form-urlencoded',
34
- }, body: urlencoded }));
35
- });
36
- },
37
- MobileToken: function (data, options) {
38
26
  return __awaiter(this, void 0, void 0, function* () {
39
27
  // request
40
28
  const encodedBody = createUrlEncodedBody(Object.assign({}, data));
@@ -10,5 +10,4 @@ export interface IKeycloakTokenRequest {
10
10
  export interface IKeycloakService {
11
11
  ServiceUrl: string;
12
12
  Token: (data: IKeycloakTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IKeycloakTokenResponse>>;
13
- MobileToken: (data: IKeycloakTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IKeycloakTokenResponse>>;
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",