File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
with-multiple-email-sign-in/api-server
with-phone-password/api-server Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export function epOverride(oI: APIInterface): APIInterface {
77 signInPOST : async function ( input ) {
88 const emailField = input . formFields . find ( ( f ) => f . id === "email" ) ! ;
99
10- let primaryEmail = getPrimaryEmailFromInputEmail ( emailField . value ) ;
10+ let primaryEmail = getPrimaryEmailFromInputEmail ( emailField . value as string ) ;
1111 if ( primaryEmail !== undefined ) {
1212 emailField . value = primaryEmail ;
1313 }
@@ -16,7 +16,7 @@ export function epOverride(oI: APIInterface): APIInterface {
1616 signUpPOST : async function ( input ) {
1717 const emailField = input . formFields . find ( ( f ) => f . id === "email" ) ! ;
1818
19- let primaryEmail = getPrimaryEmailFromInputEmail ( emailField . value ) ;
19+ let primaryEmail = getPrimaryEmailFromInputEmail ( emailField . value as string ) ;
2020 if ( primaryEmail !== undefined ) {
2121 emailField . value = primaryEmail ;
2222 }
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ supertokens.init({
7575 // We format the phone number here to get it to a standard format
7676 const emailField = input . formFields . find ( ( field ) => field . id === "email" ) ;
7777 if ( emailField ) {
78- const phoneNumber = parsePhoneNumber ( emailField . value ) ;
78+ const phoneNumber = parsePhoneNumber ( emailField . value as string ) ;
7979 if ( phoneNumber !== undefined && phoneNumber . isValid ( ) ) {
8080 emailField . value = phoneNumber . number ;
8181 }
@@ -91,7 +91,7 @@ supertokens.init({
9191 // We format the phone number here to get it to a standard format
9292 const emailField = input . formFields . find ( ( field ) => field . id === "email" ) ;
9393 if ( emailField ) {
94- const phoneNumber = parsePhoneNumber ( emailField . value ) ;
94+ const phoneNumber = parsePhoneNumber ( emailField . value as string ) ;
9595 if ( phoneNumber !== undefined && phoneNumber . isValid ( ) ) {
9696 emailField . value = phoneNumber . number ;
9797 }
You can’t perform that action at this time.
0 commit comments