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

Add middleware function for webhook signing #25

Open
ynnoj opened this issue Mar 21, 2021 · 0 comments
Open

Add middleware function for webhook signing #25

ynnoj opened this issue Mar 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ynnoj
Copy link
Owner

ynnoj commented Mar 21, 2021

Another common use case for Next.js API Routes is to receive and action Stripe events. It is recommended by Stripe that you verify these events.

The library could export a signing function to verify webhook events from Stripe, which could then be used as a middleware.

@ynnoj ynnoj added the enhancement New feature or request label Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant