JavaScript SDK send multiple calls to redirect uri on login

Hello!

I’m using the JavaScript SDK with a login button.
When logging in, the redirect uri that I’ve provided in the authorize call gets called multiple times.
When looking into the SDK I see you use _poller which is looping the calls until a response is given.
Right now this seems to be creating errors on my side, since the callback function is called multiple (usually three) times.
So I got two questions:

  1. Is this necessary?
  2. If necessary, do you have any recommendation of how to handle multiple callbacks from your SDK?

Best wishes,

Martin

To figure out the problem, it would be helpful to let me know service_url that I can access.
If you do not want it to be public, you can send me a message.

Also, please let me know the parameters that you used when requesting Kakao.Auth.authorize().