Hello everyone! I'm new to supertokens. I'm curren...
# support-questions-legacy
c
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
Hey!
You don’t need to call the APIs from the frontend directly. We have helper functions for you
c
yeah I got it after some time, thank you @rp_st!
r
👍
c
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
hey @crro i see the field in the config section
c
that's weird I don't
r
Hmmm. That’s very very strange
Can you clear your localstorage and try again?
c
when I clear it they all appear again
hmm strange
now I resubmitted and it appears correctly
r
Hmmm. Might be a bug from a previous version of how the form works. But anyway, it should work fine now
c
yep thanks!
2 Views