Returns if the error field exists and the value is a string.
error
function hasRefreshToken(): boolean;