def _oauth_tokengetter(token=None):
    """
    Default function to return the current user oauth token
    from session cookie.
    """
    token = session.get("oauth")
    log.debug("Token Get: %s", token)
    return token

    Default function to return the current user oauth token
    from session cookie.
    
flask_appbuilder/security/manager.py