I'm getting this error: SuperTokens core threw an ...
# support-questions-legacy
k
I'm getting this error: SuperTokens core threw an error for a POST request to path: '/recipe/session/regenerate' with status code: 400 and message: The user payload contains protected field My code looks like this:
Copy code
await session.mergeIntoAccessTokenPayload({ sessionHandle: session.getHandle() });
How can I go about debugging this?
r
hey @kbanman the sessionHandle is a protected prop. You can't change it in a session. So this type of operation is not allowed - nor should you ever need to do this. What's the use case here?
k
I'm just following some boilerplate code I found -- it seems to have worked in a previous version. Omitting
sessionHandle
worked to fix it!
r
Yup.
43 Views