https://supertokens.com/ logo
Title
c

crro

11/02/2022, 8:17 PM
Hello everyone! I'm new to supertokens. I'm currently integrating supertokens with nextjs and a custom UI. This section: https://supertokens.com/docs/passwordless/nextjs/setting-up-frontend says to take a look at the "Using your UI section" to build the auth flows. That section also has the api calls that will handle the request so if I'm making the api endpoint I know what path to give to my custom form for submission. But in the nextjs tutorial, in the next section: https://supertokens.com/docs/passwordless/nextjs/setting-up-backend we seem to add all the backend apis by adding the
[[...path]].tsx
file. My question is: where can I find the name of the endpoints to put in my custom UI forms? thank you for your help!
r

rp

11/03/2022, 3:22 AM
Hey!
You don’t need to call the APIs from the frontend directly. We have helper functions for you
c

crro

11/03/2022, 4:08 PM
yeah I got it after some time, thank you @rp!
r

rp

11/03/2022, 4:08 PM
👍
c

crro

11/03/2022, 9:24 PM
Ok, went through the whole guide, pretty useful and straightforward. Thanks a lot!
One thing I noticed while doing the next.js integration is that after added https://supertokens.com/docs/passwordless/nextjs/setting-up-backend
I got the following error:` error - Error: Please provide your websiteDomain inside the appInfo object when calling supertokens.init`
and it was fixed by adding my websiteDomain in appInfo but I noticed that the field is missing in the configuration section: https://supertokens.com/docs/passwordless/nextjs/init
r

rp

11/04/2022, 4:35 AM
hey @crro i see the field in the config section
c

crro

11/04/2022, 6:11 PM
that's weird I don't
r

rp

11/04/2022, 8:58 PM
Hmmm. That’s very very strange
Can you clear your localstorage and try again?
c

crro

11/04/2022, 10:17 PM
when I clear it they all appear again
hmm strange
now I resubmitted and it appears correctly
r

rp

11/05/2022, 4:22 AM
Hmmm. Might be a bug from a previous version of how the form works. But anyway, it should work fine now
c

crro

11/10/2022, 7:45 PM
yep thanks!