@soyio/soyio-rn-sdk 2.2.0 → 2.3.1

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.
@@ -123,7 +123,7 @@ var useSoyioAuth = function (_a) {
123
123
  var authentication = (0, react_1.useCallback)(function (authRequestParams) { return __awaiter(void 0, void 0, void 0, function () {
124
124
  var authBaseUri;
125
125
  return __generator(this, function (_a) {
126
- authBaseUri = (0, utils_1.getRequestUrl)(options, __assign({ request: 'authentication' }, authRequestParams));
126
+ authBaseUri = (0, utils_1.getRequestUrl)(options, __assign({ request: 'authentication_request' }, authRequestParams));
127
127
  handleProcess(authBaseUri, authRequestParams);
128
128
  return [2 /*return*/];
129
129
  });
@@ -3,7 +3,7 @@ import { AuthRequestParams, DisclosureParams, SoyioWidgetParams } from './types'
3
3
  type RequestUrlParams = {
4
4
  request: 'disclosure';
5
5
  } & DisclosureParams | {
6
- request: 'authentication';
6
+ request: 'authentication_request';
7
7
  } & AuthRequestParams;
8
8
  export declare function getRequestUrl(options: SoyioWidgetParams, params: RequestUrlParams): string;
9
9
  export declare function buildUrlParams(widgetParams: SoyioWidgetParams, requestParams: DisclosureParams | AuthRequestParams): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",
@@ -22,22 +22,22 @@
22
22
  "expo-web-browser": "~12.8.2"
23
23
  },
24
24
  "peerDependencies": {
25
+ "expo": "*",
25
26
  "react": "*",
26
- "react-native": "*",
27
- "expo": "*"
27
+ "react-native": "*"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.20.0",
31
31
  "@types/react": "~18.2.45",
32
- "react": "^18.2.0",
33
- "react-native": "^0.73.6",
34
- "typescript": "^5.4.3",
35
32
  "@typescript-eslint/eslint-plugin": "^7.4.0",
36
33
  "@typescript-eslint/parser": "^7.4.0",
37
34
  "eslint": "^8.57.0",
38
35
  "eslint-config-airbnb-base": "^15.0.0",
39
36
  "eslint-plugin-eslint-comments": "^3.2.0",
40
37
  "eslint-plugin-import": "^2.29.1",
41
- "eslint-plugin-tsdoc": "^0.2.17"
38
+ "eslint-plugin-tsdoc": "^0.2.17",
39
+ "react": "^18.2.0",
40
+ "react-native": "^0.73.6",
41
+ "typescript": "^5.4.3"
42
42
  }
43
43
  }