michael_pxr
03/19/2024, 10:29 AMts
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
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