From 62ff4a7a8b644139647ea88f2d69ba98db34920d Mon Sep 17 00:00:00 2001 From: michael webber Date: Fri, 6 Feb 2026 15:06:12 -0500 Subject: [PATCH] slight corrections to Attio api module to reflect that there is no refresh_token or refresh mechanism --- packages/v1-ready/attio/api.js | 9 +++++++++ packages/v1-ready/attio/definition.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/v1-ready/attio/api.js b/packages/v1-ready/attio/api.js index 0c40ea3..64d6060 100644 --- a/packages/v1-ready/attio/api.js +++ b/packages/v1-ready/attio/api.js @@ -10,6 +10,8 @@ class Api extends OAuth2Requester { `https://app.attio.com/authorize?client_id=${this.client_id}&redirect_uri=${this.redirect_uri}&response_type=code&scope=${this.scope}&state=${this.state}` ); this.tokenUri = 'https://app.attio.com/oauth/token'; + this.tokenDetailsUri = 'https://app.attio.com/oauth/introspect'; + this.isRefreshable = false; this.URLs = { userDetails: '/self', @@ -34,6 +36,13 @@ class Api extends OAuth2Requester { return this._get(options); } + async getTokenDetails() { + const options = { + url: this.tokenDetailsUri, + }; + return this._post(options); + } + async listObjects() { const options = { url: this.baseUrl + this.URLs.objects, diff --git a/packages/v1-ready/attio/definition.js b/packages/v1-ready/attio/definition.js index eeb8c2a..023b87a 100644 --- a/packages/v1-ready/attio/definition.js +++ b/packages/v1-ready/attio/definition.js @@ -30,7 +30,7 @@ const Definition = { }, apiPropertiesToPersist: { credential: [ - 'access_token', 'refresh_token' + 'access_token' ], entity: [], },