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.
- package/dist/plugin.js +3 -0
- 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,
|