opencode-codebuddy-external-auth 1.0.23 → 1.0.24

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.
Files changed (2) hide show
  1. package/dist/plugin.js +3 -0
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -864,6 +864,9 @@ const CodeBuddyExternalAuthPlugin = async (_input) => {
864
864
  if (!tokenData) {
865
865
  return { type: "failed" };
866
866
  }
867
+ if (tokenData.userId && !cachedUserId) {
868
+ cachedUserId = tokenData.userId;
869
+ }
867
870
  return {
868
871
  type: "success",
869
872
  access: tokenData.accessToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebuddy-external-auth",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "OpenCode plugin for CodeBuddy External (IOA) authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",