<@U04UQ68083H> following the typescript source it ...
# ory-copilot
i
@chilly-king-10285 following the typescript source it seems like
'identity'?: Identity
might be not existing on the session, how can that be? how can I have a session without an identity
c
A message from kapa.ai
New message text here
d
@incalculable-petabyte-84501 the identity does not exist on the session if you’ve just completed a login flow, but the user has 2FA enabled on their account. In this case your UpdateLoginFlow will give you a session, but you won’t get the identity until you’ve completed the second factor
i
sry, for the late response and thx for the info