rp
03/30/2021, 5:19 AMts
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