Closed kriskw1999 closed 10 months ago
Name | Link |
---|---|
Latest commit | 142210dbb56cdb44e866e8eb133ef85b2660c9d8 |
Latest deploy log | https://app.netlify.com/sites/precious-marshmallow-968a81/deploys/656f960c30346a000832e0aa |
Name | Link |
---|---|
Latest commit | 142210dbb56cdb44e866e8eb133ef85b2660c9d8 |
Latest deploy log | https://app.netlify.com/sites/astounding-pegasus-21c111/deploys/656f960cb7ce66000840c041 |
The code change looks good to me. Before merging, we'd need:
I'm happy to take over as well if you don't want to do those parts.
@porcellus ok now I guess that I have done all the stuff. If I missed something let me know!
Summary of change
Fix Type Mismatch in
verifySession
Function for Fastify RoutesDescription:
sandbox:
Issue:
verifySession
function in the Fastify application incorrectly uses the SuperTokens'SessionRequest
type, leading to a type mismatch.get
method, the expected dynamic request type from the handler function was being overshadowed by the SuperTokens type.Solution:
verifySession
function.verifySession
function to accept a generic type parameterT
, extending from Fastify'sOriginalFastifyRequest
.Technical Details:
Original Code:
Proposed Solution:
Impact:
verifySession
.Additional Notes: