Complete working with token refresh