File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/auth0-server-js/src Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class ServerClient<TStoreOptions = unknown> {
6868 authorizationParams : this . #options. authorizationParams ,
6969 customFetch : this . #options. customFetch ,
7070 useMtls : this . #options. useMtls ,
71+ telemetry : this . #options. telemetry ,
7172 } ) ;
7273 }
7374
Original file line number Diff line number Diff line change 1- import { AuthorizationDetails } from '@auth0/auth0-auth-js' ;
1+ import type { AuthorizationDetails , TelemetryConfig } from '@auth0/auth0-auth-js' ;
2+
3+ export type { TelemetryConfig } from '@auth0/auth0-auth-js' ;
24
35export interface ServerClientOptions < TStoreOptions = unknown > {
46 domain : string ;
@@ -18,10 +20,16 @@ export interface ServerClientOptions<TStoreOptions = unknown> {
1820
1921 /**
2022 * Indicates whether the SDK should use the mTLS endpoints if they are available.
21- *
23+ *
2224 * When set to `true`, using a `customFetch` is required.
2325 */
2426 useMtls ?: boolean ;
27+
28+ /**
29+ * Optional telemetry configuration.
30+ * Telemetry is enabled by default and sends the Auth0-Client header with package name and version.
31+ */
32+ telemetry ?: TelemetryConfig ;
2533}
2634
2735export interface UserClaims {
You can’t perform that action at this time.
0 commit comments