feat: add domain-based access control for API keys (#198)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
KM Koushik
parent
dbc6996d9a
commit
0817b0c7a5
@@ -59,5 +59,5 @@ export const getTeamFromToken = async (c: Context) => {
|
||||
logger.error({ err }, "Failed to update lastUsed on API key")
|
||||
);
|
||||
|
||||
return { ...team, apiKeyId: apiKey.id };
|
||||
return { ...team, apiKeyId: apiKey.id, apiKey: { domainId: apiKey.domainId } };
|
||||
};
|
||||
|
Reference in New Issue
Block a user