The Callback component is being wrapped in AuthConsumer, but when the consumer state changes wouldn't that trigger a re-render of the callback component, which would then call handleAuthentication twice causing all sorts of problems, like the handleAuthentication method failing on the second run?
The Callback component is being wrapped in AuthConsumer, but when the consumer state changes wouldn't that trigger a re-render of the callback component, which would then call
handleAuthenticationtwice causing all sorts of problems, like thehandleAuthenticationmethod failing on the second run?