If you don't pass the code, the login will fail. Keep in mind that the session cookie has its own expiration time, so you may need to call the login method again after some time while providing the ...