@clipdone/cli 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/bin/clipdone.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,13 @@ clipdone logout
|
|
|
42
42
|
clipdone revoke
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
`logout` removes only
|
|
45
|
+
`logout` removes only local credentials. `revoke` also revokes the refresh token, preventing renewal. Previously issued access tokens can remain valid until their expiry (OAuth access tokens have a configured lifetime of one hour).
|
|
46
|
+
|
|
47
|
+
If an older CLI reports `unsupported_token_type` during revoke, upgrade with
|
|
48
|
+
`npm install -g @clipdone/cli@latest`. The old CLI attempts refresh-token
|
|
49
|
+
revocation first, then JWT revocation, which can fail before it removes local
|
|
50
|
+
credentials. Use `clipdone logout` to remove any remaining local credentials;
|
|
51
|
+
logout alone does not revoke server-side tokens.
|
|
46
52
|
|
|
47
53
|
## Common workflow
|
|
48
54
|
|
package/bin/clipdone.js
CHANGED
|
@@ -542,7 +542,7 @@ async function oauthRegisterClient({ scope }) {
|
|
|
542
542
|
grant_types: ["authorization_code", "refresh_token"],
|
|
543
543
|
response_types: ["code"],
|
|
544
544
|
token_endpoint_auth_method: "none",
|
|
545
|
-
|
|
545
|
+
application_type: "native",
|
|
546
546
|
scope
|
|
547
547
|
})
|
|
548
548
|
});
|
|
@@ -1390,9 +1390,8 @@ async function main() {
|
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
1392
|
await revokeOAuthToken(session.refreshToken, session.clientId, "refresh_token");
|
|
1393
|
-
await revokeOAuthToken(session.accessToken, session.clientId, "access_token");
|
|
1394
1393
|
clearStoredAuth();
|
|
1395
|
-
return output({ message: "
|
|
1394
|
+
return output({ message: "Refresh token revoked and local credentials removed. Existing access tokens remain valid until expiry." });
|
|
1396
1395
|
}
|
|
1397
1396
|
if (command === "me") {
|
|
1398
1397
|
if (!getManualTokenOverride() && !hasStoredAuth()) return output({ authenticated: false });
|