Closed ghost closed 3 years ago
Yeah, I found cause. I don't know why but:
Because i change redirect path: /auth => /online/auth (this is my online auth route)
so my code is: redirect.dispatch(Redirect.Action.APP, authUrlHeader || /online/auth
); => make Redirect component redirect me to 1 path /online/auth.js
Now I keep the code as instructed, it worked fine :)
Hi Shopify team,
I have read new guide and see you implement user re-authenticate.
I added above code, update verifyRequest follow the guide, but i see when re-authenticating (request to /grapqhql return 403 code), above code using Redirect component to redirect me to a page have url [authUrlHeader].js.
I don’t have that page so result for that redirecting request will be 404 ( Not found ) => leads app working not properly.
I also don’t know how Redirect component work. But i think re-authenticate might be like:
Authenticate => get 403 code => re-fetch authenticate with authUrlHeader => server will be automatically do online authenticate
I mean it must be Re-fecth not Redirect.
Let me know if I get something wrong. Thanks and best regards,