Added invalidateAccessToken and support for auto token expiration