Were you aware that authentication objects already handle automatic re-authentication if enabled?