Change shopify authentication request url

I’m having the same issue 302 when I have cookies, once I clear the cookies it afterAuth works