@0xsequence/provider 1.2.2 → 1.2.3
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/dist/0xsequence-provider.cjs.dev.js +3 -2
- package/dist/0xsequence-provider.cjs.prod.js +3 -2
- package/dist/0xsequence-provider.esm.js +3 -2
- package/dist/declarations/src/types.d.ts +3 -0
- package/package.json +10 -10
- package/src/transports/wallet-request-handler.ts +2 -1
- package/src/types.ts +4 -0
|
@@ -2682,7 +2682,8 @@ class WalletRequestHandler {
|
|
|
2682
2682
|
const authOptions = {
|
|
2683
2683
|
app: options.app,
|
|
2684
2684
|
origin: options.origin,
|
|
2685
|
-
expiry: options.expiry
|
|
2685
|
+
expiry: options.expiry,
|
|
2686
|
+
nonce: options.authorizeNonce
|
|
2686
2687
|
};
|
|
2687
2688
|
// if (typeof(options.authorize) === 'object') {
|
|
2688
2689
|
// authOptions = { ...authOptions, ...options.authorize }
|
|
@@ -3523,7 +3524,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3523
3524
|
|
|
3524
3525
|
var packageJson = {
|
|
3525
3526
|
name: "@0xsequence/provider",
|
|
3526
|
-
version: "1.2.
|
|
3527
|
+
version: "1.2.3",
|
|
3527
3528
|
description: "provider sub-package for Sequence",
|
|
3528
3529
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3529
3530
|
source: "src/index.ts",
|
|
@@ -2682,7 +2682,8 @@ class WalletRequestHandler {
|
|
|
2682
2682
|
const authOptions = {
|
|
2683
2683
|
app: options.app,
|
|
2684
2684
|
origin: options.origin,
|
|
2685
|
-
expiry: options.expiry
|
|
2685
|
+
expiry: options.expiry,
|
|
2686
|
+
nonce: options.authorizeNonce
|
|
2686
2687
|
};
|
|
2687
2688
|
// if (typeof(options.authorize) === 'object') {
|
|
2688
2689
|
// authOptions = { ...authOptions, ...options.authorize }
|
|
@@ -3523,7 +3524,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3523
3524
|
|
|
3524
3525
|
var packageJson = {
|
|
3525
3526
|
name: "@0xsequence/provider",
|
|
3526
|
-
version: "1.2.
|
|
3527
|
+
version: "1.2.3",
|
|
3527
3528
|
description: "provider sub-package for Sequence",
|
|
3528
3529
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3529
3530
|
source: "src/index.ts",
|
|
@@ -2678,7 +2678,8 @@ class WalletRequestHandler {
|
|
|
2678
2678
|
const authOptions = {
|
|
2679
2679
|
app: options.app,
|
|
2680
2680
|
origin: options.origin,
|
|
2681
|
-
expiry: options.expiry
|
|
2681
|
+
expiry: options.expiry,
|
|
2682
|
+
nonce: options.authorizeNonce
|
|
2682
2683
|
};
|
|
2683
2684
|
// if (typeof(options.authorize) === 'object') {
|
|
2684
2685
|
// authOptions = { ...authOptions, ...options.authorize }
|
|
@@ -3519,7 +3520,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3519
3520
|
|
|
3520
3521
|
var packageJson = {
|
|
3521
3522
|
name: "@0xsequence/provider",
|
|
3522
|
-
version: "1.2.
|
|
3523
|
+
version: "1.2.3",
|
|
3523
3524
|
description: "provider sub-package for Sequence",
|
|
3524
3525
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3525
3526
|
source: "src/index.ts",
|
|
@@ -115,6 +115,9 @@ export interface ConnectOptions {
|
|
|
115
115
|
expiry?: number;
|
|
116
116
|
/** authorize will perform an ETHAuth eip712 signing and return the proof to the dapp. */
|
|
117
117
|
authorize?: boolean;
|
|
118
|
+
/** authorizeNonce number is an optional number to be passed toe ETHAuth nonce claim for extra
|
|
119
|
+
* challenge and security feature. **/
|
|
120
|
+
authorizeNonce?: number;
|
|
118
121
|
/** authorizeVersion is the version of the SDK that will validate the ETHAuth proof. */
|
|
119
122
|
authorizeVersion?: number;
|
|
120
123
|
/** askForEmail will prompt to give permission to the dapp to access email address */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/provider",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "provider sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"eventemitter2": "^6.4.5",
|
|
13
13
|
"webextension-polyfill": "^0.10.0",
|
|
14
|
-
"@0xsequence/abi": "1.2.
|
|
15
|
-
"@0xsequence/
|
|
16
|
-
"@0xsequence/auth": "1.2.
|
|
17
|
-
"@0xsequence/
|
|
18
|
-
"@0xsequence/core": "1.2.
|
|
19
|
-
"@0xsequence/network": "1.2.
|
|
20
|
-
"@0xsequence/relayer": "1.2.
|
|
21
|
-
"@0xsequence/utils": "1.2.
|
|
22
|
-
"@0xsequence/wallet": "1.2.
|
|
14
|
+
"@0xsequence/abi": "1.2.3",
|
|
15
|
+
"@0xsequence/account": "1.2.3",
|
|
16
|
+
"@0xsequence/auth": "1.2.3",
|
|
17
|
+
"@0xsequence/migration": "1.2.3",
|
|
18
|
+
"@0xsequence/core": "1.2.3",
|
|
19
|
+
"@0xsequence/network": "1.2.3",
|
|
20
|
+
"@0xsequence/relayer": "1.2.3",
|
|
21
|
+
"@0xsequence/utils": "1.2.3",
|
|
22
|
+
"@0xsequence/wallet": "1.2.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"ethers": ">=5.5 < 6"
|
|
@@ -159,7 +159,8 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P
|
|
|
159
159
|
const authOptions: AuthorizationOptions = {
|
|
160
160
|
app: options.app,
|
|
161
161
|
origin: options.origin,
|
|
162
|
-
expiry: options.expiry
|
|
162
|
+
expiry: options.expiry,
|
|
163
|
+
nonce: options.authorizeNonce
|
|
163
164
|
}
|
|
164
165
|
// if (typeof(options.authorize) === 'object') {
|
|
165
166
|
// authOptions = { ...authOptions, ...options.authorize }
|
package/src/types.ts
CHANGED
|
@@ -171,6 +171,10 @@ export interface ConnectOptions {
|
|
|
171
171
|
/** authorize will perform an ETHAuth eip712 signing and return the proof to the dapp. */
|
|
172
172
|
authorize?: boolean
|
|
173
173
|
|
|
174
|
+
/** authorizeNonce number is an optional number to be passed toe ETHAuth nonce claim for extra
|
|
175
|
+
* challenge and security feature. **/
|
|
176
|
+
authorizeNonce?: number
|
|
177
|
+
|
|
174
178
|
/** authorizeVersion is the version of the SDK that will validate the ETHAuth proof. */
|
|
175
179
|
authorizeVersion?: number
|
|
176
180
|
|