https://supertokens.com/ logo
Title
r

Raian

12/09/2022, 8:41 AM
want to ask why sign up API is not exposed with emailpassword recipe?
r

rp

12/09/2022, 8:42 AM
hey @Raian
it is exposed.
which spec are you seeing>?
that doesb't seem like ours
r

Raian

12/09/2022, 8:44 AM
swagger
even postman cant reach it
r

rp

12/09/2022, 8:44 AM
can you send me a link?
to the swagger spec that u r seeing
r

Raian

12/09/2022, 8:44 AM
its local
r

rp

12/09/2022, 8:44 AM
this is the swagger spec supertokens exposes
im not sure what swagger you are referring to to be honest
please see the link i sent above
r

Raian

12/09/2022, 8:45 AM
also cant find signup
r

Raian

12/09/2022, 8:47 AM
is it supposed to be signin instead of sign-in?
r

rp

12/09/2022, 8:48 AM
it's pretty clear in the spec above.
r

Raian

12/09/2022, 8:52 AM
hm ok i had been staring at the wrong API section sry about that now the APIs are not exposed at all
r

rp

12/09/2022, 8:52 AM
Have you followed our guides?
r

Raian

12/09/2022, 8:52 AM
yeah
r

rp

12/09/2022, 8:52 AM
And used our backend SDK middleware?
r

Raian

12/09/2022, 8:53 AM
r

rp

12/09/2022, 8:53 AM
Right.
So please enable backend debug logs
And show me the output when you call one of the APIs
What’s the apiBasePath you have added to your backend config? (In appInfo object)
By default the value of the is /auth
r

Raian

12/09/2022, 8:56 AM
/auth
r

rp

12/09/2022, 8:56 AM
So if you haven’t added that config, then try querying /auth/signin
Instead of /api/auth/signin
r

Raian

12/09/2022, 8:56 AM
oh
r

rp

12/09/2022, 8:56 AM
Or else change the apiBasePath in the backend to /api/auth
r

Raian

12/09/2022, 8:56 AM
ohhh ok
how to make it show up in swagger though?
swagger is currently under localhost:3000/api
r

rp

12/09/2022, 8:58 AM
Ah right. That you can’t.
Cause the APIs are exposed implicitly
If you want to have them on swagger, you will have to make those APIs yourself and use the functions provided by our backend SDK
But not worth the effort tbh. Just use our middleware
r

Raian

12/09/2022, 8:59 AM
hmm ok thanks
lets say if i were to have them exposed on swagger, are there any references for the API implementations?
r

rp

12/09/2022, 2:39 PM
Our SDK is open source. You can see the code 🙂