fastify-oauth2
fastify-oauth2 copied to clipboard
Fixed onUserInfoResponse chunks being overridden
trafficstars
This PR fixes the issue - 268. Where receiving a large UserInfo response it will chunk the data but override previous chunks instead of adding to it. This therefore causes issues with a partial JSON response which errors the code.
Checklist
- [x] run
npm run testandnpm run benchmark - [x] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [x] commit message and code follows the Developer's Certification of Origin and the Code of conduct