Hello, I am using the passwordless recipe for onl...
# support-questions-legacy
s
Hello, I am using the passwordless recipe for only otp based authentication. Wanted to try the resend code route (signinup/code/resend) feature. Getting this response : { "status": "GENERAL_ERROR", "message": "Failed to generate a one time code. Please try again" } Tried debugging the backend SDK following are the logs for the same: API Server listening on port 3030 com.supertokens {t: "2022-08-02T12:59:42.364Z", message: "middleware: Started", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:158:26" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.364Z", message: "middleware: requestRID is: passwordless", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:172:26" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.365Z", message: "middleware: Checking recipe ID for match: passwordless", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:181:34" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.365Z", message: "middleware: Matched with recipe ID: passwordless", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:194:30" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.365Z", message: "middleware: Request being handled by recipe. ID is: /signinup/code/resend", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:206:30" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.472Z", message: "Sending response to client with status code: 200", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/utils.js:90:14" sdkVer: "11.0.1"} +0ms com.supertokens {t: "2022-08-02T12:59:42.475Z", message: "middleware: Ended", file: "/Documents/supertokens/node_modules/supertokens-node/lib/build/supertokens.js:215:30" sdkVer: "11.0.1"} +0ms Any guidance on how to debug this issue would be appreciated. Thanks .
r
hey!
are you creating your own OTPs?
s
Hello, yes
r
you may want to check how that works - it is returning the same OTP for the login attempt
you need to create a new OTP each time that function is called
s
Ok. Let me check that.
hey, this is working now. Thanks a lot!
r
ok great!
6 Views