Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch siwe@3.0.0 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/siwe/dist/types.d.ts b/node_modules/siwe/dist/types.d.ts
index 69f25e7..3d20df5 100644
--- a/node_modules/siwe/dist/types.d.ts
+++ b/node_modules/siwe/dist/types.d.ts
@@ -1,4 +1,4 @@
-import { providers } from 'ethers';
+import { Provider } from 'ethers';
import { SiweMessage } from './client';
export interface VerifyParams {
/** Signature of the message signed by the wallet */
@@ -15,7 +15,7 @@ export interface VerifyParams {
export declare const VerifyParamsKeys: Array<keyof VerifyParams>;
export interface VerifyOpts {
/** ethers provider to be used for EIP-1271 validation */
- provider?: providers.Provider;
+ provider?: Provider;
/** If the library should reject promises on errors, defaults to false */
suppressExceptions?: boolean;
/** Enables a custom verification function that will be ran alongside EIP-1271 check. */
diff --git a/node_modules/siwe/dist/utils.d.ts b/node_modules/siwe/dist/utils.d.ts
index 4bf8409..02127f7 100644
--- a/node_modules/siwe/dist/utils.d.ts
+++ b/node_modules/siwe/dist/utils.d.ts
@@ -1,4 +1,4 @@
-import { providers, Signer } from 'ethers';
+import { Provider, Signer } from 'ethers';
import type { SiweMessage } from './client';
/**
* This method calls the EIP-1271 method for Smart Contract wallets
@@ -7,7 +7,7 @@ import type { SiweMessage } from './client';
* @returns {Promise<boolean>} Checks for the smart contract (if it exists) if
* the signature is valid for given address.
*/
-export declare const checkContractWalletSignature: (message: SiweMessage, signature: string, provider?: providers.Provider | Signer) => Promise<boolean>;
+export declare const checkContractWalletSignature: (message: SiweMessage, signature: string, provider?: Provider | Signer) => Promise<boolean>;
/**
* This method leverages a native CSPRNG with support for both browser and Node.js
* environments in order generate a cryptographically secure nonce for use in the
This issue body was partially generated by patch-package.