diff --git a/.changeset/rename-application-id-header.md b/.changeset/rename-application-id-header.md new file mode 100644 index 0000000..7634bfb --- /dev/null +++ b/.changeset/rename-application-id-header.md @@ -0,0 +1,6 @@ +--- +"@nylas/connect": patch +--- + +Changed the header name from `x-nylas-application-public-id` to improve API consistency. + diff --git a/packages/nylas-connect/src/connect-client.ts b/packages/nylas-connect/src/connect-client.ts index 59c7888..5c311cd 100644 --- a/packages/nylas-connect/src/connect-client.ts +++ b/packages/nylas-connect/src/connect-client.ts @@ -61,7 +61,7 @@ export class NylasConnect { private static readonly NYLAS_CONNECT_VERSION: string = pkg.version; private static readonly NYLAS_CONNECT_HEADER = "x-nylas-connect" as const; private static readonly NYLAS_APPLICATION_ID_HEADER = - "x-nylas-public-application-id" as const; + "x-nylas-application-public-id" as const; constructor(config: ConnectConfig = {}) { // Resolve configuration with environment variables and defaults