<@498057949541826571> I am using ThirdPartyPasswor...
# support-questions-legacy
s
@rp_st I am using ThirdPartyPasswordless recipe, I want to do certain steps post successful login(otp verification etc) but before the session gets created. If this is achievable, Where should i place my logic(which function override?)
r
This is possible. Override the functions: - consumeCode - thirdPartySignInUp in override.functions config.
s
what's the order @rp_st ? ConsumeCode is called first and then thirdPartySignInUp. or vice versa?
r
consume code for passwordless login
thirdPartySignInUp for social login
so two different functions, for two different login methods
s
alright thanks a lot 😄
s
@rp_st is it consumeCode or consumeCodePOST upon hijacking consumeCodePOST and returning a general error (in certain scenarios where the original implementation . consumeCodePOST response is status OK) the user is still ending up getting logged in
just to clarify, the goal is to show some error message but only after email has been verified by inserting OTP / social login
r
yea it's consumeCode in override.functions
you need to throw an error from consumeCode and the catch it in consumeCodePOST and return a general error from there
8 Views