If i use localhost to redirect_url to get access token, it will redirect again and again to authenticate

If i use localhost to redirect_url to get access token, it will redirect again and again to authenticate

I use http://127.0.0.1:4001/
http://localhost:4001/

Hi Parth,
Could you make a new test app with this as the redirect url,
https://trade.fyers.in/api-login/redirect-uri/index.html

If the above still causes issue, I would require a little more info on the steps you are performing to create the access token.

For more info,
https://myapi.fyers.in/docs#tag/Authentication-and-Login-Flow-User-Apps

But it is working when i give public url like https://www.google.com/.

What to do?


Do you have any server running on your localhost?

Yes. I use flask in python to run server and give that localhost url

Unfortunately they have provided checks while creating the app which does not allow to create an app without a subdomain or providing port number. For the time being during your development process can you please use,
https://trade.fyers.in/api-login/redirect-uri/index.html