feat: connect cloud api code agent billing (#1139)
This commit is contained in:
@@ -925,7 +925,15 @@ async function codeAgentOptions(request, response, options, authOptions = {}) {
|
||||
sendJson(response, auth.status, auth);
|
||||
return null;
|
||||
}
|
||||
return { ...options, actor: auth.actor ?? null, authSession: auth.session ?? null };
|
||||
return {
|
||||
...options,
|
||||
actor: auth.actor ?? null,
|
||||
authSession: auth.session ?? null,
|
||||
authApiKey: auth.apiKey ?? null,
|
||||
actorApiKeySecret: auth.apiKey?.displaySecret ?? null,
|
||||
userBillingAuth: auth.userBilling ?? null,
|
||||
userBillingClient: options.userBillingClient ?? options.accessController?.userBilling ?? null
|
||||
};
|
||||
}
|
||||
|
||||
async function readJsonObject(request, limitBytes) {
|
||||
|
||||
Reference in New Issue
Block a user