Who gets your digital assets when you pass away?

A lot of us have wills or living trusts. It's the easiest way to make sure your loved ones get what they should when you pass away. But who gets access to what you have stored online?