fix: remove debug logs from authentication and organization switching to enhance security and prevent sensitive information leakage

This commit is contained in:
Usman Baig
2026-02-22 20:18:06 +01:00
parent 18d9f59e5d
commit 1947c6a886
5 changed files with 1 additions and 10 deletions

View File

@@ -47,7 +47,6 @@ export async function getUserOrganizations(): Promise<OrganizationMember[]> {
// Switch Context (Get token for specific org)
export async function switchContext(organizationId: string | null): Promise<{ access_token: string; expires_in: number }> {
const payload = { organization_id: organizationId || '' }
console.log('Sending switch context request:', payload)
return await authFetch<{ access_token: string; expires_in: number }>('/auth/switch-context', {
method: 'POST',
body: JSON.stringify(payload),