import json


def login_response_to_authorization_header(response):
    """ given a response from login or register, return a dictionary containing a header for Authorization """
    return dict(
                    Authorization='Bearer ' + json.loads(
                        response.data.decode()
                    )['auth_token']
                )