@trust-proto/auth-node 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +11 -12
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -55,18 +55,17 @@ const auth = new LiberionAuth({
55
55
 
56
56
  ## Configuration
57
57
 
58
- | Option | Type | Required | Default | Description |
59
- | ------------- | ----------------------------------------------- | -------- | -------------- | ------------------------------------ |
60
- | `projectId` | `string` | ✅ | - | Project UUID from Liberion dashboard |
61
- | `secretCode` | `string` | ✅ | - | Secret code for encryption |
62
- | `port` | `number` | ❌ | `31313` | WebSocket server port |
63
- | `ssl` | `SSLCredentials` | ❌ | - | SSL/TLS options for HTTPS server |
64
- | `debug` | `boolean` | ❌ | `false` | Enable debug logging |
65
- | `environment` | `'production' \| 'development'` | ❌ | `'production'` | Target environment |
66
- | `logger` | `ILogger` | ❌ | `NoOpLogger` | Custom logger instance |
67
- | `onHello` | `(address: string) => Promise<boolean>` | ❌ | - | Check if user is registered |
68
- | `onSuccess` | `(payload: AuthPayload) => Promise<AuthResult>` | ❌ | - | Called on successful auth |
69
- | `onDecline` | `(info: DeclineInfo) => Promise<void>` | ❌ | - | Called when auth is declined |
58
+ | Option | Type | Required | Default | Description |
59
+ | ------------ | ----------------------------------------------- | -------- | ------------ | ------------------------------------ |
60
+ | `projectId` | `string` | ✅ | - | Project UUID from Liberion dashboard |
61
+ | `secretCode` | `string` | ✅ | - | Secret code for encryption |
62
+ | `port` | `number` | ❌ | `31313` | WebSocket server port |
63
+ | `ssl` | `SSLCredentials` | ❌ | - | SSL/TLS options for HTTPS server |
64
+ | `debug` | `boolean` | ❌ | `false` | Enable debug logging |
65
+ | `logger` | `ILogger` | ❌ | `NoOpLogger` | Custom logger instance |
66
+ | `onHello` | `(address: string) => Promise<boolean>` | ❌ | - | Check if user is registered |
67
+ | `onSuccess` | `(payload: AuthPayload) => Promise<AuthResult>` | ❌ | - | Called on successful auth |
68
+ | `onDecline` | `(info: DeclineInfo) => Promise<void>` | ❌ | - | Called when auth is declined |
70
69
 
71
70
  ## Callbacks
72
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trust-proto/auth-node",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Liberion Auth Backend SDK with post-quantum cryptography",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "@msgpack/msgpack": "^3.1.2",
45
45
  "@noble/post-quantum": "^0.5.4",
46
46
  "ethers": "^6.16.0",
47
- "libsodium-wrappers": "^0.7.15",
47
+ "libsodium-wrappers": "0.7.15",
48
48
  "uuid": "^13.0.0",
49
49
  "ws": "^8.18.2"
50
50
  },