that's under auth.domain.com. That's it's sole purpose. Now, I have another service, let's call it API, that I need to init supertokens-node into for API route session verification and such. While looking into the sourcecode of
st-node
I saw that the init config the
recipeList
is not optional. I don't want any ST apis on this service, all I want is to .init() it, point it to core and be able to validate requests. Should I just add the Session recipe and nothing else? Will that work? Thanks
r
rp_st
12/07/2022, 4:00 AM
Hey @legolas89110609 yea. You would need to initialise all recipes that you intend to use in the server.
rp_st
12/07/2022, 4:00 AM
But you need not add the middleware to that server.
l
legolas89110609
12/08/2022, 8:03 PM
sorry for the late reply, forgot to turn on Discord notifications. So if I just want to use verifySession, I only need the Session recipe, right?
legolas89110609
12/08/2022, 11:32 PM
managed to get it working with just
ThirdPartyEmailPassword.init({})
in recipe list, didn't need to init the 3rd parties as well. Had to add the empty object because of TS but that's ok. Thanks
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).