Hello team,
We have been trying to integrate Angel one into our advisory app so that our customers can directly place orders from our app to angel one.
In the publisher login, the url takes custom state as per the docs:
https://smartapi.angelone.in/publisher-login?api_key=xxx&state=statevariable
but when the redirect uri is called after the user logs in, the state is not passed back, we are only getting the auth_token key which has client id enoded in it, but the custom state we are passing is missing.
this is a sample url we generate for the customer to login :
https://smartapi.angelone.in/publisher-login?api_key=XXXXX&state={"original_state"%3A+""%2C+"login_id"%3A+94%2C+"customer_id"%3A+142}
I have also tried to just add a simple state like, directly state=random, but no matter what the redirect uri doesn't contain it.
Please let us know if we are doing something wrong here.
Also where do we change the configured redirect and postback uri?
Regards,
tech@Savart