Where Are Extra Fields Stored?
j
Hello again! Another question: [The Adding fields page from the docs](https://supertokens.com/docs/emailpassword/common-customizations/signup-form/adding-fields) says that it's possible to include extra fields on sign-up (such as display name, location, or age), but then at the very end of the page, it says: "SuperTokens does not store custom form fields. You need to store them in your db post user sign up." When the
signUp
function is called in step 1, where does the
name
,
age
, and
country
go when a user signs up? I'm curious because I want to include an optional display name field in my sign-up form. I can implement storing the extra field (associated with either the user's email or ID) in my own database, but I'm confused as to why adding the field to the configuration is necessary since SuperTokens can't store the field. Thanks again in advance!
r
we require you to add it cause we do validation of the fields, since they are an input to our APIs. You can get access to the user's submissted field in the sign up API override
7 Views