File tree Expand file tree Collapse file tree
packages/b2c-tooling/src/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ import {getLogger} from '../logging/logger.js';
55 * API Key authentication strategy.
66 *
77 * Supports two modes:
8- * - Bearer token: When headerName is 'Authorization', formats as 'Bearer < key> '
8+ * - Bearer token: When headerName is 'Authorization', formats as 'Bearer { key} '
99 * - Direct key: For other headers (e.g., 'x-api-key'), sets the key directly
1010 *
1111 * @example
1212 * // For MRT API (Bearer token)
1313 * const auth = new ApiKeyStrategy(apiKey, 'Authorization');
14- * // Sets: Authorization: Bearer < apiKey>
14+ * // Sets: Authorization: Bearer { apiKey}
1515 *
1616 * @example
1717 * // For custom API key header
1818 * const auth = new ApiKeyStrategy(apiKey, 'x-api-key');
19- * // Sets: x-api-key: < apiKey>
19+ * // Sets: x-api-key: { apiKey}
2020 */
2121export class ApiKeyStrategy implements AuthStrategy {
2222 private readonly headerValue : string ;
You can’t perform that action at this time.
0 commit comments