messages for refresh and no token in api cache_method
code reuse in api