https://supertokens.com/ logo
#support-questions
Title
# support-questions
b

benjick

11/06/2021, 11:48 AM
In my backend config I put this
Copy code
js
{
  id: 'inviteCode',
  validate: async (inviteCode: string) => {
    const isCodeValid = await inviteCodeCheck.backend(inviteCode);
    console.log('isCodeValid', isCodeValid);
    if (!isCodeValid) {
      console.log('Invalid invite code, Invalid invite code');
      return 'Invalid invite code';
    }
  },
},
under
Copy code
js
ecipeList: [
  ThirdPartyEmailPasswordNode.init({
    signUpFeature: {
      formFields: [
but it's never triggered, nothing is logged. How would I debug this?