I have made a comman function for all post api calls and now i want to handle 401 error code and need to logout user from application But as useContext(AuthContext)