Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add verify metadata content option #9

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

meelrossi
Copy link

Add new property to verify functino options to be able to add a custom verification for metadata

@meelrossi meelrossi force-pushed the feat/add-verify-metadata-content-opt branch 3 times, most recently from 43274e0 to be9ede1 Compare June 17, 2024 20:02
@@ -193,6 +193,16 @@ export default async function verify<P extends {} = {}>(
const ownerAddress = await verifySign(authChain, payload, options)
await verifyExpiration(timestamp, options)

if (
options.verifyMetadataContent &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be checked only if the metadata header is set?

@meelrossi meelrossi force-pushed the feat/add-verify-metadata-content-opt branch from be9ede1 to 5824cd3 Compare June 17, 2024 20:10
@meelrossi meelrossi merged commit ccd29d3 into main Jun 17, 2024
2 checks passed
@meelrossi meelrossi deleted the feat/add-verify-metadata-content-opt branch June 17, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants