agent-mp 0.4.8 → 0.4.10
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/utils/qwen-auth.js +3 -0
- package/package.json +1 -1
package/dist/utils/qwen-auth.js
CHANGED
|
@@ -225,6 +225,9 @@ export async function qwenAuthStatus() {
|
|
|
225
225
|
const token = await loadToken();
|
|
226
226
|
if (!token)
|
|
227
227
|
return { authenticated: false };
|
|
228
|
+
// Verify token is not expired (loadToken already refreshes if close to expiry)
|
|
229
|
+
if (token.expiresAt > 0 && token.expiresAt < Date.now())
|
|
230
|
+
return { authenticated: false };
|
|
228
231
|
return { authenticated: true };
|
|
229
232
|
}
|
|
230
233
|
export async function fetchQwenModels() {
|