@credenza3/partner-sdk 0.0.2-alpha.1 → 0.0.2-alpha.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/README.md CHANGED
@@ -28,6 +28,3 @@ useAuth({
28
28
  [evm](./src/evm/README.md)
29
29
 
30
30
  [sui](./src/sui/README.md)
31
-
32
- [sui/zk](./src/sui/zk/README.md)
33
-
@@ -13,7 +13,7 @@ test('Adds jwt Validator', async () => {
13
13
  tokenParamKind: 'body',
14
14
  tokenParamMask: '#####',
15
15
  },
16
- profile_fields_mapping: {
16
+ profileFieldsMapping: {
17
17
  email: 'users.0.email',
18
18
  name: ['users.0.localId', 'users.0.validSince'],
19
19
  },
@@ -9,7 +9,7 @@ export type TJwtAuthUpdateValidatorParams = {
9
9
  tokenParamKind?: string;
10
10
  tokenParamMask?: string;
11
11
  };
12
- profile_fields_mapping?: {
12
+ profileFieldsMapping?: {
13
13
  email?: string;
14
14
  phone?: string;
15
15
  picture?: string;
@@ -18,14 +18,6 @@ export type TJwtAuthUpdateValidatorParams = {
18
18
  };
19
19
  export type TJwtAuthValidatorParams = TJwtAuthUpdateValidatorParams & {
20
20
  validationFields: string[];
21
- userinfoRequestConfig?: {
22
- method: string;
23
- url: string;
24
- contentType: string;
25
- tokenParamName: string;
26
- tokenParamKind: string;
27
- tokenParamMask?: string;
28
- };
29
21
  };
30
22
  export type TJwtAuthValidator = TJwtAuthValidatorParams & {
31
23
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credenza3/partner-sdk",
3
- "version": "0.0.2-alpha.1",
3
+ "version": "0.0.2-alpha.2",
4
4
  "description": "Credenza partner sdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- export declare function getSuiZkAddress(sub: string): Promise<{
2
- address: string;
3
- }>;
package/dist/sui/zk/zk.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSuiZkAddress = getSuiZkAddress;
4
- const credentials_1 = require("../../lib/credentials");
5
- const sui_1 = require("../sui");
6
- async function getSuiZkAddress(sub) {
7
- const response = await fetch(`${(0, sui_1.getSuiApiUrl)()}/accounts/zk/${sub}/address`, {
8
- headers: {
9
- Authorization: (0, credentials_1.getBasicToken)(),
10
- 'Content-Type': 'application/json',
11
- },
12
- });
13
- const json = await response.json();
14
- return json;
15
- }