diff --git a/smartapps/com-obycode/obything-connect.src/obything-connect.groovy b/smartapps/com-obycode/obything-connect.src/obything-connect.groovy index b8ecb50..806c44b 100644 --- a/smartapps/com-obycode/obything-connect.src/obything-connect.groovy +++ b/smartapps/com-obycode/obything-connect.src/obything-connect.groovy @@ -49,6 +49,14 @@ def updated() { unsubscribe() } +def uninstalled() { + logout() +} + +def logout() { + revokeAccessToken() +} + // mapping handlers // /setup POST