Commit 175574b
authored
fix: session cookie parsing optimizations (#1009)
## Summary of change
This PR refactors the function used for parsing incoming request cookies and optimizes it to avoid parsing cookies (since we don't care about the value).
> PS: The changes to the oauth2 and webauthn files were done during the build process (I think some formatting changes)
## Related issues
- #1007
## Test Plan
- All tests in backend-sdk-testing should pass
## Documentation changes
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here highlighting the necessary changes)
## Checklist for important updates
- [x] Changelog has been updated
- [ ] `coreDriverInterfaceSupported.json` file has been updated (if needed)
- Along with the associated array in `lib/ts/version.ts`
- [ ] `frontendDriverInterfaceSupported.json` file has been updated (if needed)
- [ ] Changes to the version if needed
- In `package.json`
- In `package-lock.json`
- In `lib/ts/version.ts`
- [x] Had run `npm run build-pretty`
- [x] Had installed and ran the pre-commit hook
- [ ] If new thirdparty provider is added,
- [ ] update switch statement in `recipe/thirdparty/providers/configUtils.ts` file, `createProvider` function.
- [ ] add an icon on the user management dashboard.
- [x] Issue this PR against the latest non released version branch.
- To know which one it is, run find the latest released tag (`git tag`) in the format `vX.Y.Z`, and then find the latest branch (`git branch --all`) whose `X.Y` is greater than the latest released tag.
- If no such branch exists, then create one from the latest released branch.
- [ ] If have added a new web framework, update the `add-ts-no-check.js` file to include that
- [ ] If added a new recipe / api interface, then make sure that the implementation of it uses NON arrow functions only (like `someFunc: function () {..}`).
- [ ] If added a new recipe, then make sure to expose it inside the recipe folder present in the root of this repo. We also need to expose its types.
- [ ] If added a new entry point, then make sure that it is importable by adding it to the `exports` in `package.json`
## Remaining TODOs for this PRFile tree
6 files changed
+72
-45
lines changed- lib
- build/recipe
- oauth2provider
- session
- webauthn
- ts/recipe/session
6 files changed
+72
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 289 | + | |
301 | 290 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
306 | 297 | | |
| 298 | + | |
| 299 | + | |
307 | 300 | | |
308 | 301 | | |
309 | | - | |
| 302 | + | |
310 | 303 | | |
0 commit comments