---
# System prepended metadata

title: client-refreshToken

---

# client-refreshToken

/films {ac_ok} -> list

/films {ac_exp} -> expired
	=> /refresh {ac_exp rf} -> {ac_ok}
	=> /films {ac_ok} -> list
	
==================================

/films {ac_ok} -> list

/refresh {ac_nearly_exp rf} -> {ac_ok}
	=> /films {ac_ok} -> list
	
==================================

/films {ac_ok, rf} -> list

/films {ac_exp, rf} -> {
	ac_ok,
	list
} => backend phải tự refresh token, client không refresh token tường minh