Skip to Content

UseSubscriptionOptions

UseSubscriptionOptions = object

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

Properties

autoFetch?

optional autoFetch: boolean

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

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


baseUrl?

optional baseUrl: string

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

Optional base URL for the API requests.


getToken()?

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

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

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:38 

Optional callback for error handling

Parameters

ParameterType

error

Error

Returns

void

Last updated on