mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-10 00:11:19 +00:00
fix(foundry): type runtime auth result
This commit is contained in:
parent
08655fb02b
commit
25bea06596
1 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
// Microsoft Foundry plugin module implements runtime behavior.
|
||||
import type { ProviderPrepareRuntimeAuthContext } from "openclaw/plugin-sdk/core";
|
||||
import type {
|
||||
ProviderPreparedRuntimeAuth,
|
||||
ProviderPrepareRuntimeAuthContext,
|
||||
} from "openclaw/plugin-sdk/core";
|
||||
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
||||
import {
|
||||
asDateTimestampMs,
|
||||
|
|
@ -49,7 +52,9 @@ async function refreshEntraToken(params?: {
|
|||
return { apiKey: result.accessToken, expiresAt };
|
||||
}
|
||||
|
||||
export async function prepareFoundryRuntimeAuth(ctx: ProviderPrepareRuntimeAuthContext) {
|
||||
export async function prepareFoundryRuntimeAuth(
|
||||
ctx: ProviderPrepareRuntimeAuthContext,
|
||||
): Promise<ProviderPreparedRuntimeAuth> {
|
||||
if (ctx.apiKey !== "__entra_id_dynamic__") {
|
||||
return {
|
||||
apiKey: ctx.apiKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue