Skip to content

An SDK that streamlines extension development by automating request verification, response formatting, and API interactions

License

Notifications You must be signed in to change notification settings

copilot-extensions/preview-sdk.js

Repository files navigation

@copilot-extensions/preview-sdk

SDK for building GitHub Copilot Extensions

⚠️ This SDK is a preview and subjetct to change. We will however adhere to semantic versioning, so it's save to use for early experimentation. Just beware there will be breaking changes. Best to watch this repository's releases for updates.

Usage

verify(rawBody, signature, keyId, options)

import { verify } from "@copilot-extensions/preview-sdk";

const payloadIsVerified = await verify(request.body, signature, keyId, {
  token,
});
// true or false

Contributing

Please see CONTRIBUTING.md

License

MIT

About

An SDK that streamlines extension development by automating request verification, response formatting, and API interactions

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published