-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update for changes in SvelteKit that remove rawBody
#6
Comments
Seems in |
Hey, I'm also using Stripe's API and need the rawBody from an endpoints |
I found this to work for me:
|
I had the need of rawbody recently and have used the same pattern. |
You can remove the const rawBody = Buffer.from(await request.arrayBuffer()); |
Does anyone has a solution ... None of these worked for me ... 😢 |
Since sveltejs/kit#3384,
rawBody
is no longer exposed in endpoints. I have not found a way to correctly pass the original request into Stripe'sconstructEvent
to verify the event signature. I'd love to know if you think that can be done and how.The text was updated successfully, but these errors were encountered: