When should i refresh token

You may make a request and get an unauthorized response. Just refresh the token and try the request again.