Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Aug 19:07
· 57 commits to main since this release
c2cc765

BREAKING CHANGES

  • verify() method has been replaced by
    verifyRequestByKeyId() for clarity

Before:

import { verify } from "@copilot-extensions/preview-sdk";
const payloadIsVerified = await verify(request.body, signature, keyId, { token });

After

import { verifyRequestByKeyId } from "@copilot-extensions/preview-sdk";
const payloadIsVerified = await verifyRequestByKeyId(request.body, signature, key, { token });

Features

  • verifyRequestByKeyId(), verifyRequest(), fetchVerificationKeys() (#8) (c2cc765)