Returns how many seconds after a refresh the next one is due: the
relationship's fedRefreshEverySeconds, else the access token's expires_in,
else an hour.
Parameters
record: any
the relationship
expiresIn: any
the access token's expires_in, if the partner sent one
Returns how many seconds after a refresh the next one is due: the relationship's fedRefreshEverySeconds, else the access token's expires_in, else an hour.