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

rp

03/30/2021, 5:19 AM
@User try the following and see if it works:
Copy code
ts
import {ThirdPartyEmailPasswordPreAPIHookContext} from "supertokens-auth-react/recipe/thirdpartyemailpassword"

ThirdPartyEmailPassword.init({
  async preAPIHook(context: ThirdPartyEmailPasswordPreAPIHookContext) {
    // TODO:...
  }
});
Reference code can be found here: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-typescript/src/App.tsx#L251