Hi, on calling http://localhost:3000/api/auth/sign...
# support-questions-legacy
d
Hi, on calling http://localhost:3000/api/auth/signup/code I got a 401 unathorized error... What can I do?
r
hey @der_suchende this API does not do session verification.. im not sure how that's happening. Have you added the session verification check for all routes?
d
I think not, before it worked
r
Im not sure.. how can we replicate this issue?
d
ok, I solved it. The problem was causd by this code:
let session = await SessionNode.getSession(input.options.req, input.options.res, { overrideGlobalClaimValidators: () => [], });
in the createCodePOST apis override in the backend config
teken from the SuperTokens documentation
r
right. That's in the 2fa docs right? Are you implementing 2fa?
5 Views