File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
packages/thirdweb/src/auth Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Improve docs for verifySignature
Original file line number Diff line number Diff line change @@ -107,17 +107,19 @@ export type VerifySignatureParams = Prettify<
107
107
/**
108
108
* Verifies the signature based on the provided options.
109
109
* Handles smart contract wallet signatures and EOA signatures.
110
- * IMPORTANT: in order to check smart contract signatures, a chain and client must be provided.
110
+ * ** IMPORTANT: in order to check smart contract signatures, a chain and client must be provided.**
111
111
* @param options - The options for signature verification.
112
112
* @returns A boolean indicating whether the signature is valid or not.
113
113
* @example
114
114
* ```ts
115
115
* import { verifySignature } from 'thirdweb/auth';
116
116
*
117
117
* const isValid = await verifySignature({
118
- * message: '0x1234567890123456789012345678901234567890',
119
- * signature: '0x1234567890123456789012345678901234567890',
120
- * address: '0x1234567890123456789012345678901234567890'
118
+ * message: 'Your message to sign',
119
+ * signature: '0x91db0222ec371a8c18d3b187a6d2e77789bffca1b96826ef6b8708e0d4a66c80312fc3ae95b8fbc147265abf539bb6f360152be61a0e1411d7f5771a599e769a1c',
120
+ * address: '0xda9C7A86AeE76701FC1c23ae548e8E93Ba3e42A5',
121
+ * client: thirdwebClient,
122
+ * chain: chain
121
123
* });
122
124
* ```
123
125
* @auth
You can’t perform that action at this time.
0 commit comments