UNPKG

@microsoft/teams.apps

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code

12 lines (11 loc) • 586 B
/** Removes credentials, query parameters, and fragments from a URL used in diagnostics. */ export declare function sanitizeSocketModeUrl(value: string): string; /** * Removes Socket Mode credentials from diagnostic text before it reaches logs * or caller-visible errors. * * @param value Diagnostic text that may contain a credential. * @param secrets Exact credential values known by the caller. * @returns Diagnostic text with bearer tokens and sensitive fields redacted. */ export declare function redactSocketModeSecrets(value: string, secrets?: readonly string[]): string;