and have typescript enforce type correctness of the config
r
rp_st
10/12/2022, 8:14 PM
hey @jin49
rp_st
10/12/2022, 8:15 PM
the types are not exposed by the frontend SDK unfortunately. That beignn said, you can add your config directly in supertokens.init(config)
And then if the implicit type of
config
is wrong, TS will complain
p
porcellus
10/12/2022, 8:16 PM
it's a bit hacky, but you could do something like:
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).