Refresh access token with OpenAPI

Created at 01 Jun 2023, 18:01
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SW

swapd0

Joined 07.10.2019

Refresh access token with OpenAPI
01 Jun 2023, 18:01


When I launch my application, first I send a ProtoOAApplicationAuthReq, and then a ProtoOAAccountAuthReq, when the access token is out of date I get an error message with "CH_ACCESS_TOKEN_INVALID"

Then I try to update it sending a ProtoOARefreshTokenReq message using my current (out of date) token but I get another "CH_ACCESS_TOKEN_INVALID" as response, I have also tried with another (random) token with the same result.

How can I refresh the access token with OpenAPI?

Thanks.

 


@swapd0
Replies

PanagiotisChar
02 Jun 2023, 09:07 ( Updated at: 21 Dec 2023, 09:23 )

Hi there, 

Make sure you are using the refresh token when you are sending the refresh token request

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar