Plugins/qwen-portal-auth: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 02:33:11 -05:00
parent 71e62a77e8
commit 6521965e40
2 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import {
emptyPluginConfigSchema,
type OpenClawPluginApi,
type ProviderAuthContext,
} from "openclaw/plugin-sdk/core";
} from "openclaw/plugin-sdk/qwen-portal-auth";
import { loginQwenPortalOAuth } from "./oauth.js";
const PROVIDER_ID = "qwen-portal";

View File

@@ -1,5 +1,8 @@
import { randomUUID } from "node:crypto";
import { generatePkceVerifierChallenge, toFormUrlEncoded } from "openclaw/plugin-sdk/compat";
import {
generatePkceVerifierChallenge,
toFormUrlEncoded,
} from "openclaw/plugin-sdk/qwen-portal-auth";
const QWEN_OAUTH_BASE_URL = "https://chat.qwen.ai";
const QWEN_OAUTH_DEVICE_CODE_ENDPOINT = `${QWEN_OAUTH_BASE_URL}/api/v1/oauth2/device/code`;