v2.0.0
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 });