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

rp

03/24/2021, 4:24 AM
@User the docs for handling the callback on the backend are wrong. Apologies for that. What you should actually do is:
Copy code
ThirdPartyEmailPasswordNode.init({
  signUpFeature: {
    handlePostSignUp: async (user, context) => {
      let {id, email} = user;
      if (context.loginType === "emailpassword") {
        let formFields = context.formFields;
        // TODO...
      } else {
        let thirdPartyAuthCodeResponse = context.thirdPartyAuthCodeResponse;
        // thirdPartyAuthCodeResponse is the response from the third party login provider that contains the access / refresh tokens sent by them..
      }
    }
  }
});