- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6 lines
430 B
JavaScript
6 lines
430 B
JavaScript
import { chain, memoize, TokenProviderError } from "@smithy/property-provider";
|
|
import { fromSso } from "./fromSso";
|
|
export const nodeProvider = (init = {}) => memoize(chain(fromSso(init), async () => {
|
|
throw new TokenProviderError("Could not load token from any providers", false);
|
|
}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);
|