@tuwaio/siwx-server 0.6.0 → 0.7.0
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 +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ It has two entry points:
|
|
|
14
14
|
|
|
15
15
|
## 🏛️ Core Capabilities
|
|
16
16
|
|
|
17
|
-
- **Verification:** `verifySiwxPayload` parses the message, validates it against your `SiwxVerificationPolicy` and routes the signature check by chain to `@tuwaio/siwx-evm` (EIP-191, with a smart contract wallet fallback, EIP-1271 and ERC-6492, when `publicClient` gives a client for the chain of the message) or `@tuwaio/siwx-solana` (ed25519). It returns a result instead of throwing.
|
|
17
|
+
- **Verification:** `verifySiwxPayload` parses the message, validates it against your `SiwxVerificationPolicy` and routes the signature check by chain to `@tuwaio/siwx-evm` (EIP-191, with a smart contract wallet fallback, EIP-1271 and ERC-6492, when `publicClient` gives a client for the chain of the message) or `@tuwaio/siwx-solana` (ed25519, over the message or its version 1 off-chain message, which hardware wallets sign). It returns a result instead of throwing.
|
|
18
18
|
- **Durable profile:** `createSiwxApiHandler` serves the nonce, verify, session and logout routes on top of your `SiwxSessionStore` and `SiwxNonceStore` (Redis, SQL, KV…), with the session ID in an `HttpOnly` cookie.
|
|
19
19
|
- **Stateless demo profile:** `createStatelessDemoSiwxHandler` issues HMAC-signed nonces and keeps the session in an HMAC-signed cookie, for demos without a database.
|
|
20
20
|
- **Server-side session:** `getSiwxServerSession` reads the session from a `Request`, `Headers`, a `Cookie` header or the Next.js `cookies()` store, for Server Actions and API routes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/siwx-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@tuwaio/orbit-core": "^0.5.0",
|
|
91
|
-
"@tuwaio/siwx-core": "0.
|
|
92
|
-
"@tuwaio/siwx-evm": "0.5.
|
|
93
|
-
"@tuwaio/siwx-solana": "0.
|
|
91
|
+
"@tuwaio/siwx-core": "0.7.0",
|
|
92
|
+
"@tuwaio/siwx-evm": "0.5.1",
|
|
93
|
+
"@tuwaio/siwx-solana": "0.6.0",
|
|
94
94
|
"tsup": "^8.5.1",
|
|
95
95
|
"typescript": "6.0.3",
|
|
96
96
|
"viem": "^2.57.1"
|