First of all, it is important to start by re-iterating the importance of having a Will in place. This enables your Executors, those who are then charged with dealing with the administration of your estate and the carrying out of your wishes the ability to contact all organisations you were involved with during your lifetime and liaise with them as to how to then deal with them.
This is clearly more straightforward where bank accounts/ property and so on are concerned as generally speaking there will be a good paper trail for them to follow.
To assist your Executors with the digital aspect of your life it is always advisable to keep a hard copy written log of your digital assets including all logins and passwords. This will make their job less difficult. This should also be kept under regular review and a copy kept with your Will (though not attached to it).
This is also particularly important in relation to social media accounts such as Facebook, Instagram, Twitter and LinkedIn. Certain social media accounts do enable you within your account settings to nominate a person to control a 'memorial page' on death. This is known as a 'legacy contact feature'.
Many online accounts such as yahoo, Microsoft, google, Itunes do now also have the ability within the account features to enable you to specify who you would be happy to have access to close the account on death and to terminate the licence. Such accounts cannot be gifted to another person.
Online banking accounts (that exist online only) do not generally offer such a facility hence again the importance of having a Will in place, naming your Executors as they can then simply contact the relevant provider, such as Paypal, with the Death Certificate and arrange for the account to be closed and monies paid to your estate.