fragordie
03/30/2022, 4:52 PMresp.headersSent
being true in the authentication guard. How does this work?rp_st
03/30/2022, 4:53 PMporcellus
03/30/2022, 5:02 PMresp.headersSent
should only be set if the response has already started.fragordie
03/30/2022, 5:03 PMfragordie
03/30/2022, 5:03 PMfragordie
03/30/2022, 5:06 PMverifySession
method, headersSent is FALSE - https://prnt.sc/s5tcPLR17ZFl
3. In the auth guard, right after verifySession()
fires, headersSent is set to TRUE - https://prnt.sc/MrrIlDe6Hks5
4.
ts
if (resp.headersSent) {
throw new STError({
message: 'RESPONSE_SENT',
type: 'RESPONSE_SENT',
});
}
this code snippets therefore throws an errorfragordie
03/30/2022, 5:08 PMfragordie
03/30/2022, 5:08 PMporcellus
03/30/2022, 5:49 PMfragordie
03/30/2022, 5:52 PMporcellus
03/30/2022, 7:24 PMheadersSent
is true? I'll look into this more, but that's the only case this should happen.porcellus
03/30/2022, 7:54 PM/auth
routes or if you set refreshTokenPath
porcellus
03/30/2022, 7:54 PMporcellus
03/30/2022, 7:54 PMrp_st
03/30/2022, 8:53 PMfragordie
03/30/2022, 9:40 PMfragordie
03/30/2022, 9:41 PMfragordie
03/30/2022, 9:42 PMrp_st
03/30/2022, 9:42 PMfragordie
03/30/2022, 9:42 PMfragordie
03/30/2022, 9:42 PMfragordie
03/30/2022, 9:43 PMrp_st
03/30/2022, 9:44 PMrp_st
03/30/2022, 9:44 PMfragordie
03/30/2022, 9:45 PMfragordie
03/30/2022, 9:45 PMfragordie
03/30/2022, 9:45 PMfragordie
03/30/2022, 9:46 PMrp_st
03/30/2022, 9:46 PMrp_st
03/30/2022, 9:47 PMrid: anti-csrf
to itfragordie
03/30/2022, 9:48 PMrp_st
03/30/2022, 9:49 PMrp_st
03/30/2022, 9:49 PMfragordie
03/30/2022, 9:49 PMrp_st
03/30/2022, 9:49 PMfragordie
03/30/2022, 9:50 PMfragordie
03/30/2022, 9:50 PM