Back to All

Guest user is not connected even after completing broker login.

Hi, I am initializing the SDK with guest auth token and then perform broker login, but I am still being prompted to login with a broker if I try to execute buy/sell transaction. This does not happen if I provide an auth token created by signing an auth id.

After transaction workflow is completed I am decoding the authtoken I received and storing the authid. My question is whether I have to reinitialize the client sdk with the auth id I received for the guest user to be authenticated properly and prevent any further login prompts.
I tried reinitializing but when I try to trigger any buy/sell workflows, the sdk still prompts me with login to broker page.
Here is my source code:
https://gist.github.com/BhayanakMoth/db06c9963be521b5d40f62c847ce2514