how to call an external script one the users is expired?