The SDK now stores the authentication mode used to log in (in local storage), and uses that when logging in with the popup login window for if the user's session times out.