supertokens-node icon indicating copy to clipboard operation
supertokens-node copied to clipboard

CollectingResponse inconsistency with actual response types

Open porcellus opened this issue 10 months ago • 0 comments

In our guides we recommend people to implement sending custom responses in API overrides by calling sendJSONResponse on the response class and that the object returned by the override will be ignored. This doesn't work in the current implementation since later calls to sendJSONResponse (from a non-overrideable part of the SDK) will actually overwrite the response set in the override instead of simulating what other response types do, where the later calls to sendJSONResponse are ignored. This is causing issues in our in NextJS integration.

porcellus avatar Jan 22 '25 16:01 porcellus