mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 23:22:32 +00:00
Plugins: internalize qwen portal auth SDK imports
This commit is contained in:
@@ -3,10 +3,10 @@ import { QWEN_OAUTH_MARKER } from "openclaw/plugin-sdk/agent-runtime";
|
||||
import {
|
||||
buildOauthProviderAuthResult,
|
||||
definePluginEntry,
|
||||
refreshQwenPortalCredentials,
|
||||
type ProviderAuthContext,
|
||||
type ProviderCatalogContext,
|
||||
} from "openclaw/plugin-sdk/qwen-portal-auth";
|
||||
import { refreshQwenPortalCredentials } from "openclaw/plugin-sdk/qwen-portal-auth";
|
||||
} from "./runtime-api.js";
|
||||
import { loginQwenPortalOAuth } from "./oauth.js";
|
||||
import { buildQwenPortalProvider, QWEN_PORTAL_BASE_URL } from "./provider-catalog.js";
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import {
|
||||
generatePkceVerifierChallenge,
|
||||
toFormUrlEncoded,
|
||||
} from "openclaw/plugin-sdk/qwen-portal-auth";
|
||||
import { generatePkceVerifierChallenge, toFormUrlEncoded } from "./runtime-api.js";
|
||||
|
||||
const QWEN_OAUTH_BASE_URL = "https://chat.qwen.ai";
|
||||
const QWEN_OAUTH_DEVICE_CODE_ENDPOINT = `${QWEN_OAUTH_BASE_URL}/api/v1/oauth2/device/code`;
|
||||
|
||||
1
extensions/qwen-portal-auth/runtime-api.ts
Normal file
1
extensions/qwen-portal-auth/runtime-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/qwen-portal-auth";
|
||||
Reference in New Issue
Block a user