From 2f32d531ac711eec513bd702efb36aacf05ab2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Wadstr=C3=B6m?= Date: Tue, 4 Nov 2025 14:11:39 +0100 Subject: [PATCH] fix: Add missing scope to authentication Zaptec has migrated to a new authentication system. It requires setting scope to offline_access. This is likely a miss in the documentation since it's not required there. The fix was provided by Zaptec directly. So many thanks. --- lib/zaptec/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zaptec/api.ts b/lib/zaptec/api.ts index 20b02f8..3550272 100644 --- a/lib/zaptec/api.ts +++ b/lib/zaptec/api.ts @@ -338,6 +338,7 @@ export class ZaptecApi { grant_type: 'password', username, password, + scope: 'offline_access', }), );