Hi, I am using React ThirdPartyPasswordless In her...
# support-questions
h
Hi, I am using React ThirdPartyPasswordless In here (https://supertokens.com/docs/thirdpartypasswordless/common-customizations/signup-form/custom-providers) It said "you do not need to add a click handler to this as we add it for you automatically." So if I have my own button component and want to handle the onClick event by myself, I will do like this: const authUrl = await getThirdPartyAuthorisationURLWithQueryParamsAndSetState({ providerId: "google", authorisationURL: "http://localhost:3000/auth/callback/google", }); window.location.assign(authUrl); Is it correct?
n
Hi
@porcellus Might be able to help here
p
Hi, I'll check it out in a bit.
h
oke, thanks all
p
yep, this is correct, but you'll also have to prevent the original click handler from being called
h
Thanks @porcellus for your answer, btw, how to prevent the original click handler from being called
p
stopPropagation should work.