Skip to main content

Changing Field Labels and Placeholder text

If you would like to modify the fields in the login widget, by changing UI labels or placeholder text, you can do so by modifying the formFields property when initializing SuperTokens on the frontend.

SuperTokens.init({    appInfo: {...},    recipeList: [        EmailPassword.init({            signInAndUpFeature: {                signInForm: {                    formFields: [{                        id: "email",                        label: "customFieldName",                        placeholder: "Custom value"                    }]                }            }        }),        Session.init()    ]});