Error code 413

{

s: ‘error’,

code: -413,

message: ‘Your auth code has expired. Please generate a new auth code’

}

Is auth_code valid only for one use?

I believe that refresh token expires after 15 days.
So do we need to generate new auth-code then generate new refresh-token for another 15 days?

@naresh_janagama Please help me with this.

Hi Raihan,

The refresh token is valid for 15 days. When you generate the Auth code, the refresh token is included in the response. For more details, refer API - FYERS Docs