@oevortex/opencode-qwen-auth 0.1.3 → 0.1.4
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/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1109,12 +1109,13 @@ async function QwenOAuthPlugin(context) {
|
|
|
1109
1109
|
baseUrl = baseUrl.replace(/\/+$/, "") + "/v1";
|
|
1110
1110
|
}
|
|
1111
1111
|
const qwenFetch = createQwenFetch(getAuth, client);
|
|
1112
|
-
|
|
1112
|
+
const loaderResult = {
|
|
1113
1113
|
apiKey: "",
|
|
1114
1114
|
// Empty - using OAuth
|
|
1115
1115
|
baseUrl,
|
|
1116
1116
|
fetch: qwenFetch
|
|
1117
1117
|
};
|
|
1118
|
+
return loaderResult;
|
|
1118
1119
|
},
|
|
1119
1120
|
/**
|
|
1120
1121
|
* Authentication methods available to the user.
|
|
@@ -1144,7 +1145,7 @@ async function QwenOAuthPlugin(context) {
|
|
|
1144
1145
|
url: "",
|
|
1145
1146
|
instructions: result.type === "success" ? "Authentication complete!" : result.error || "Authentication failed",
|
|
1146
1147
|
method: "auto",
|
|
1147
|
-
callback: async () => result
|
|
1148
|
+
callback: async (callbackUrl) => result
|
|
1148
1149
|
};
|
|
1149
1150
|
}
|
|
1150
1151
|
},
|
package/dist/index.js
CHANGED
|
@@ -1043,12 +1043,13 @@ async function QwenOAuthPlugin(context) {
|
|
|
1043
1043
|
baseUrl = baseUrl.replace(/\/+$/, "") + "/v1";
|
|
1044
1044
|
}
|
|
1045
1045
|
const qwenFetch = createQwenFetch(getAuth, client);
|
|
1046
|
-
|
|
1046
|
+
const loaderResult = {
|
|
1047
1047
|
apiKey: "",
|
|
1048
1048
|
// Empty - using OAuth
|
|
1049
1049
|
baseUrl,
|
|
1050
1050
|
fetch: qwenFetch
|
|
1051
1051
|
};
|
|
1052
|
+
return loaderResult;
|
|
1052
1053
|
},
|
|
1053
1054
|
/**
|
|
1054
1055
|
* Authentication methods available to the user.
|
|
@@ -1078,7 +1079,7 @@ async function QwenOAuthPlugin(context) {
|
|
|
1078
1079
|
url: "",
|
|
1079
1080
|
instructions: result.type === "success" ? "Authentication complete!" : result.error || "Authentication failed",
|
|
1080
1081
|
method: "auto",
|
|
1081
|
-
callback: async () => result
|
|
1082
|
+
callback: async (callbackUrl) => result
|
|
1082
1083
|
};
|
|
1083
1084
|
}
|
|
1084
1085
|
},
|
package/package.json
CHANGED