execreate
10/19/2022, 10:19 AMcreate_new_session
call will get the user_id
from the latest recipe used in MFA flow, is that right? So how do I override the user_id
to contain the ID from the very first recipe in my MFA flow?execreate
10/19/2022, 10:22 AMuser_id
.
I can get that ID this way:
python
passwordless_user_id = get_user_by_phone_number(old_session.get_access_token_payload().get("phoneNumber")).id
And then is it enough to pass that ID to original_implementation_create_new_session
as user_id
?nkshah2
10/19/2022, 10:23 AMnkshah2
10/19/2022, 10:23 AMnkshah2
10/19/2022, 10:24 AMnkshah2
10/19/2022, 10:24 AMnkshah2
10/19/2022, 10:24 AMexecreate
10/19/2022, 10:26 AMoriginal_implementation.create_new_session
should be fine
I think I'm almost there with my implementation 🙂nkshah2
10/19/2022, 10:26 AMexecreate
10/19/2022, 10:47 AMSecondFactorCompletedClaim.validators.has_value(True)
does not fail if token does not contain the claim at all, is that right?nkshah2
10/19/2022, 10:48 AMrp_st
10/19/2022, 10:57 AMrp_st
10/19/2022, 10:58 AMexecreate
10/19/2022, 11:03 AM