@tuwaio/siwx-core 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -81,7 +81,7 @@ const result = validateMessage(parseMessage(message), {
81
81
  policy: {
82
82
  expectedDomain: 'app.tuwa.io',
83
83
  expectedUri: 'https://app.tuwa.io',
84
- allowedChainIds: ['eip155:1', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpK'],
84
+ allowedChainIds: ['eip155:1', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'],
85
85
  requireExpirationTime: true,
86
86
  maxIssuedAtAgeSeconds: 300,
87
87
  maxSessionLifetimeSeconds: 24 * 60 * 60,
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ type SiwxChainNamespace = 'eip155' | 'solana';
12
12
  * A CAIP-2 chain ID in a supported namespace: `{namespace}:{reference}`.
13
13
  *
14
14
  * @example "eip155:1" (Ethereum Mainnet)
15
- * @example "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpK" (Solana Mainnet)
15
+ * @example "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" (Solana Mainnet)
16
16
  */
17
17
  type SiwxChainId = `${SiwxChainNamespace}:${string}`;
18
18
  /**
@@ -111,7 +111,7 @@ interface SiwxVerificationPolicy {
111
111
  /**
112
112
  * Allowed CAIP-2 chain IDs. The message `chainId` must equal one of them exactly (bare references such as `"1"`
113
113
  * never match). An empty array allows every chain.
114
- * @example ["eip155:1", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpK"]
114
+ * @example ["eip155:1", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]
115
115
  */
116
116
  allowedChainIds?: string[];
117
117
  /**
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ type SiwxChainNamespace = 'eip155' | 'solana';
12
12
  * A CAIP-2 chain ID in a supported namespace: `{namespace}:{reference}`.
13
13
  *
14
14
  * @example "eip155:1" (Ethereum Mainnet)
15
- * @example "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpK" (Solana Mainnet)
15
+ * @example "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" (Solana Mainnet)
16
16
  */
17
17
  type SiwxChainId = `${SiwxChainNamespace}:${string}`;
18
18
  /**
@@ -111,7 +111,7 @@ interface SiwxVerificationPolicy {
111
111
  /**
112
112
  * Allowed CAIP-2 chain IDs. The message `chainId` must equal one of them exactly (bare references such as `"1"`
113
113
  * never match). An empty array allows every chain.
114
- * @example ["eip155:1", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpK"]
114
+ * @example ["eip155:1", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]
115
115
  */
116
116
  allowedChainIds?: string[];
117
117
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/siwx-core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",