useSubscription
useSubscription(
options:object):UseSubscriptionResult
Defined in: src/react/useSubscription.ts:89
React hook for managing subscription status and billing operations. Provides methods to check status, upgrade, manage billing, cancel, and renew subscriptions.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
‐ |
|
|
|
Whether to fetch subscription status automatically on mount (default: true) |
|
|
|
Optional base URL for the API requests. |
|
|
() => |
Custom function to get auth token for API calls |
|
|
( |
Optional callback for error handling |
Returns
Last updated on