aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Model
diff options
context:
space:
mode:
Diffstat (limited to 'Digitigrade/Model')
-rw-r--r--Digitigrade/Model/Instance.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Model/Instance.php b/Digitigrade/Model/Instance.php
index eecc6ff..a10c7b9 100644
--- a/Digitigrade/Model/Instance.php
+++ b/Digitigrade/Model/Instance.php
@@ -219,6 +219,10 @@ class Instance extends FetchableModel {
if (str_contains($http_response_header[0], '200')) {
return true;
} elseif (str_contains($http_response_header[0], '401') || str_contains($http_response_header[0], '403')) {
+ // in this case we can't be certain whether it failed because wrong token or because they're not subscribed to us
+ // so just assume it's both :>
+ $this->auth->outboundPushEnabled = false;
+ $this->auth->outboundToken = false;
throw new AuthException($this);
}
return false;