def get_user():
    'Get some information on the currently logged in user.\n\n    :return: a dictionary representing user data (see\n        `here <https://okpy.github.io/documentation/ok-api.html#users-view-a-specific-user>`_\n        for an example)\n    '
    key = session.get('access_token')
    if (key in USER_CACHE):
        data = USER_CACHE[key]
    else:
        data = current_app.remote.get('user')
        if key:
            USER_CACHE[key] = data
    return data.data['data']
Get some information on the currently logged in user.

:return: a dictionary representing user data (see
    `here <https://okpy.github.io/documentation/ok-api.html#users-view-a-specific-user>`_
    for an example)
def get_user():
    'Get some information on the currently logged in user.\n\n    :return: a dictionary representing user data (see\n        `here <https://okpy.github.io/documentation/ok-api.html#users-view-a-specific-user>`_\n        for an example)\n    '
    key = session.get('access_token')
    if (key in USER_CACHE):
        data = USER_CACHE[key]
    else:
        data = current_app.remote.get('user')
        if key:
            USER_CACHE[key] = data
    return data.data['data']