import { SHORTCUT_PROVIDER_ID } from '../../model-ids.js';
/**
 * Build the standard Shortcut 401 recovery hook: fetch a replacement through
 * the caller-owned auth storage, bypassing local expiry shortcuts.
 */
export function createShortcutAuthRecovery(authStorage) {
    return async (rejectedApiKey) => {
        return await authStorage.getApiKey(SHORTCUT_PROVIDER_ID, {
            forceRefresh: true,
            rejectedApiKey
        });
    };
}
//# sourceMappingURL=shortcut-auth-recovery.js.map