Skip to Content
SdkReactInternalType AliasesUseSubscriptionOptions

UseSubscriptionOptions

UseSubscriptionOptions = object

Defined in: src/react/useSubscription.ts:21 

Properties

autoFetch?

optional autoFetch: boolean

Defined in: src/react/useSubscription.ts:33 

Whether to fetch subscription status automatically on mount (default: true)


baseUrl?

optional baseUrl: string

Defined in: src/react/useSubscription.ts:29 

Optional base URL for the API requests.


getToken()?

optional getToken: () => Promise<string | null>

Defined in: src/react/useSubscription.ts:25 

Custom function to get auth token for API calls

Returns

Promise<string | null>


onError()?

optional onError: (error: Error) => void

Defined in: src/react/useSubscription.ts:37 

Optional callback for error handling

Parameters

ParameterType

error

Error

Returns

void

Last updated on