Hi, In the Sign up functions override example [1],...
# support-questions-legacy
m
Hi, In the Sign up functions override example [1], we see the following if-statement:
Copy code
ts
if (response.status === "OK" && response.user.loginMethods.length === 1 && input.session === undefined) {
I have the following questions: 1. Why is it checking the amount of login methods:
loginMethods.length === 1
? What if there isn't exactly one login method? 2. The typescript definition of the
input
doesn't contain the
session
property
Copy code
ts
 {
        email: string;
        password: string;
        tenantId: string;
        userContext: any;
 }
Is the typescript definition wrong? Or is the
input.session === undefined
check wrong? [1]: https://supertokens.com/docs/emailpassword/common-customizations/handling-signup-success#sign-up-override
8 Views