Type '{ mode: string; }' is not assignable to type 'TypeInputEmailVerificationFeature'.
Object literal may only specify known properties, and 'mode' does not exist in type 'TypeInputEmailVerificationFeature'.ts(2322)
hi! is this normal?
yzs
08/19/2022, 6:31 AM
should i just ignore this?
r
rp_st
08/19/2022, 6:32 AM
Hey! Can i see the import statement?
y
yzs
08/19/2022, 6:32 AM
Copy code
import EmailPasswordNode from 'supertokens-node/recipe/emailpassword'
r
rp_st
08/19/2022, 6:32 AM
oh i see. so that config goes on the frontend - with supertokens-auth-react SDK
y
yzs
08/19/2022, 6:33 AM
oh, sorry 😅
yzs
08/19/2022, 6:34 AM
wait, but if i'm building my own ui, do i still need to put this in my config?
r
rp_st
08/19/2022, 6:37 AM
u don't need to put in your config. You can just use the EmailPassword.isEmailVerified() function on the frontend. Have a look at this thread:
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).