execreate
09/30/2022, 6:32 AMrp_st
09/30/2022, 6:33 AMexecreate
09/30/2022, 6:39 AMsession.get_user_id
is going to be different than it was with Passwordless recipe 🤔rp_st
09/30/2022, 6:41 AMexecreate
09/30/2022, 6:42 AMrp_st
09/30/2022, 6:42 AMexecreate
09/30/2022, 6:54 AMrp_st
09/30/2022, 6:55 AMexecreate
09/30/2022, 10:44 AM/signinup/code/consume
with a correct OTP (second factor auth where a user must verify his/her phone number).
This happens due to the revocation of the old session created in emailpassword
recipe:
python
async def create_new_session(...):
...
old_session: SessionContainer = user_context.get("old_session")
if old_session and isinstance(old_session, SessionContainer): # second factor OTP login
...
await old_session.revoke_session(user_context) # BUG?
return await original_implementation_create_new_session(...)
Is this an intended behavior?execreate
09/30/2022, 10:45 AM"status": "OK"
rp_st
09/30/2022, 10:45 AMrp_st
09/30/2022, 10:46 AMexecreate
09/30/2022, 10:49 AMrp_st
09/30/2022, 10:49 AM