'A thread local Flow object.
Returns:
A credentials.Flow object, or None if the flow hasn\'t been set in
this thread yet, which happens in _create_flow() since Flows are
created lazily.'

def get_flow(self):

    return getattr(self._tls, 'flow', None)
