https://supertokens.com/ logo
Title
n

Nathan

12/13/2022, 2:07 PM
hi again ^^' ! Can i remove the password field for only sign up form ?
r

rp

12/13/2022, 2:20 PM
Hey @Nathan
n

Nathan

12/13/2022, 2:20 PM
Hey
r

rp

12/13/2022, 2:20 PM
It is possible.
n

Nathan

12/13/2022, 2:20 PM
😮
Here we make a custom sign up form which hides that field by setting its display CSS to none
And then using this custom sign up form to override the default one (see how the linked component is being used in app.js file)
n

Nathan

12/13/2022, 2:22 PM
But its the same with NextJS ?
r

rp

12/13/2022, 2:22 PM
Yea. It should be the same
It’s all just react and JS on the frontend anyway
n

Nathan

12/13/2022, 2:22 PM
yes, its true
but i dont have App.js with Next
r

rp

12/13/2022, 2:24 PM
That stuff goes in supertokens.init.
The frontend supertokens init call
I would suggest you see the above component first and how it’s used.
n

Nathan

12/13/2022, 3:03 PM
I can't do it with TS..
r

rp

12/13/2022, 3:17 PM
The code above works for js too. Just remove the types from everywhere.
n

Nathan

12/13/2022, 3:21 PM
but i use typescript
r

rp

12/13/2022, 4:54 PM
oh right. What TS error are you getting?