For how long is the Refresh Token Valid for?

when I call

is says refresh_token_expires_in 631139040

how long is that?

The response given is the number of seconds until the token expires. Easiest way to calculate this is to get the Unix Epoch Time at the point the token was issued, then add on the number of seconds given in the response, and then convert back to a time format of your choosing.

For more info on unix time: Unix Time Stamp - Epoch Converter