The web client (trello.com) has a cookie that has the auth information. The actual code executed for both examples is identical.