Is the only way to change the expiration of magic links through the
PASSWORDLESS_CODE_LIFETIME
env variable on the docker image for core? Was looking to configure per project not per environment.
r
rp_st
08/04/2023, 3:48 PM
hey @puff6248 what you say per project vs per env, what do you mean?
Do you want to run several apps via one core?
p
puff6248
08/04/2023, 3:51 PM
Yeah. We're self hosting Supertokens Core in docker and having multiple Next js applications backend configs talk to that single core instance per environment.
r
rp_st
08/04/2023, 3:53 PM
right. So this is possible in the latest core version, wherein you can create multiple apps in the core. Each of your nextjs app will communicate to the same core with a unique app ID, and this way, the user pool and the configs of that app ID will be isolated to each of the nextjs apps.
Here, you can set different values for PASSWORDLESS_CODE_LIFETIME on a per app level.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).