Patent attributes
A user initializes multi-factor authentication for a user account, wherein the user account is accessed from multiple user devices. User behavior data is stored in response to receiving login credentials for one of the multiple user devices and the user behavior data is provided as input criteria for a statistical model or machine-learning algorithm. The statistical model or machine-learning algorithm may determine, based on a set of rules, an ideal secondary user device for use in receiving a multi-factor authentication code. The secondary user device receives the multi-factor authentication code without further requests made by the user.