def checkAccessToken(access_token):
    """Check if the given access token matches any in the data stored
    """
    client_id  = None
    me         = None
    scope      = None
    key        = db.get('token-%s' % access_token)
    if key:
        data      = key.split('-')
        me        = data[1]
        client_id = data[2]
        scope     = data[3]

    return me, client_id, scope
dataset/ETHPy150Open bear/python-indieweb/indieweb.py/checkAccessToken/original