https://supertokens.com/ logo
p

porcx

07/11/2022, 8:50 AM
Is there any way to add object to the response after signInPost
p

porcx

07/11/2022, 8:58 AM
any better way than this ?
r

rp

07/11/2022, 8:59 AM
At the end, instead of doing
return originalImplementation.signInPOST(input);
, you should do
return resp;
other than that, this seems fine
p

porcx

07/11/2022, 9:01 AM
input.options.res.sendJSONResponse does this set the teacher values ?
r

rp

07/11/2022, 9:02 AM
it should.
i mean it should send the reponse with whatever JSON object you give it
p

porcx

07/11/2022, 9:03 AM
Thanks alot.
3 Views