Support ref & handle Authorisation errors.