"Hello,
I am currently implementing the SuperTokens passwordless recipe in a ReactJS application with Redux Toolkit. My code, which handles OTP submission, works perfectly in my local development environment. However, when I deploy the same code to my production environment, I encounter the following error:
error from otp submit ====== TypeError: Cannot use 'in' operator to search for 'loginMethods' in undefined
at l (main.js:2:3254333)
at t.normaliseUserResponse (main.js:2:3256743)
at Object.
(main.js:2:3231054)
at main.js:2:3228544
at Object.next (main.js:2:3228649)
at a (main.js:2:3227363)
import { createCode, resendCode, consumeCode,} from "supertokens-web-js/recipe/passwordless";
i am using above library
It's worth noting that my code does not make any reference to 'loginMethods,' and this issue only arises in the production environment.
I have compared the configurations between my local and production environments, and they seem consistent. Additionally, I have reviewed the SuperTokens documentation and have not found any references to 'loginMethods' in my code.
Could you please assist me in identifying the root cause of this error and provide guidance on how to resolve it?
Thank you for your help.