https://supertokens.com/ logo
Title
l

legolas8911

12/06/2022, 11:19 PM
hey, question. Right now I have an instance of
supertokens-node
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

12/07/2022, 4:00 AM
Hey @legolas8911 yea. You would need to initialise all recipes that you intend to use in the server.
But you need not add the middleware to that server.
l

legolas8911

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?
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
r

rp

12/09/2022, 3:37 AM
Cool