File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import { useActivityQuery } from './use-activity-query'
22import { getAuthToken } from '../utils/auth'
3- import { getApiClient } from '../utils/codebuff-api'
3+ import { getApiClient , setApiClientAuthToken } from '../utils/codebuff-api'
44import { logger as defaultLogger } from '../utils/logger'
55
66import type { Logger } from '@codebuff/common/types/contracts/logger'
@@ -48,6 +48,8 @@ export interface SubscriptionData {
4848export async function fetchSubscriptionData (
4949 logger : Logger = defaultLogger ,
5050) : Promise < SubscriptionData > {
51+ const authToken = getAuthToken ( )
52+ setApiClientAuthToken ( authToken )
5153 const client = getApiClient ( )
5254 const response = await client . get < SubscriptionData > (
5355 '/api/user/subscription' ,
You can’t perform that action at this time.
0 commit comments