I am just starting to work with supertokens. I prepared the project as in the tutorial for AWS lambda. I stopped at the 404 problem and prepared the frontend on this init:
appInfo: {
appName: "SuperTokens Demo App",
apiDomain: "https://api.example.com",
apiBasePath: "/auth",
apiGatewayPath: "/",
websiteDomain: "https://frontend.example.com",
},
I prebuild UI and i works. When I try type email to sign up I see network issue:
Request URL: https://api.example.com/auth/signup/email/exists?email=asda%40dsa.com
Request Method: GET
Status Code: 404 Not Found
But when I opened this page I see response: {"status":"OK","exists":false}
CORS works:
Request URL: https://api.example.com/auth/signup/email/exists?email=asda%40dsa.com
Request Method: OPTIONS
Status Code: 200 OK
I use the API GW V2 with integration for route: ANY /auth/{PROXY+}
r
rp_st
12/22/2023, 3:32 PM
hey @chilldamiano
rp_st
12/22/2023, 3:32 PM
can you enable backend debug logs and show the output when callingg this function? Also, can you show how you have integrated supertokens-node sdk with the lambda function?
c
chilldamiano
12/22/2023, 3:41 PM
At the moment I'm using Managed. service
r
rp_st
12/22/2023, 3:52 PM
what are the recipes you have init on the frontend and on the backend in the recipeList?
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).