A display method, comprising: displaying, by an electronic device, a first user interface; receiving, by the electronic device, a first operation of a user, wherein the first operation is used to control the electronic device to display a second user interface, and the second user interface comprises a widget; sending, by the electronic device, a first authentication obtaining request to a first server in response to the first operation, wherein the first authentication obtaining request comprises a first identity authentication token, the first identity authentication token is allocated by the first server to the electronic device based on a first user account of a host APP of the widget, the first authentication obtaining request is used to obtain a second identity authentication token used to access a second server, the first identity authentication token is associated with the second identity authentication token, the second identity authentication token is generated based on a second user account of a native APP of the widget and allocated by the second server, the first user account and the second user account are associated user accounts, the first server is a CP server configured to provide content of the host APP, and the second server is a content provider, CP, server of the widget; after the electronic device receives a response that is to the first authentication obtaining request and that is sent by the first server, sending, by the electronic device, a first content obtaining request to the second server, wherein the response to the first authentication obtaining request comprises the second identity authentication token, the first content obtaining request comprises the second identity authentication token, and the first content obtaining request is used to obtain content information to be displayed in the widget; and after the electronic device receives a first obtaining success response to the first content obtaining request, displaying, by the electronic device, the second user interface based on content information comprised in the first obtaining success response. displaying, by an electronic device, a first user interface; receiving, by the electronic device, a first operation of a user, wherein the first operation is used to control the electronic device to display a second user interface, and the second user interface comprises a widget; sending, by the electronic device, a first authentication obtaining request to a first server in response to the first operation, wherein the first authentication obtaining request comprises a first identity authentication token, the first identity authentication token is allocated by the first server to the electronic device based on a first user account of a host APP of the widget, the first authentication obtaining request is used to obtain a second identity authentication token used to access a second server, the first identity authentication token is associated with the second identity authentication token, the second identity authentication token is generated based on a second user account of a native APP of the widget and allocated by the second server, the first user account and the second user account are associated user accounts, the first server is a CP server configured to provide content of the host APP, and the second server is a content provider, CP, server of the widget; after the electronic device receives a response that is to the first authentication obtaining request and that is sent by the first server, sending, by the electronic device, a first content obtaining request to the second server, wherein the response to the first authentication obtaining request comprises the second identity authentication token, the first content obtaining request comprises the second identity authentication token, and the first content obtaining request is used to obtain content information to be displayed in the widget; and after the electronic device receives a first obtaining success response to the first content obtaining request, displaying, by the electronic device, the second user interface based on content information comprised in the first obtaining success response.