File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ type UseSessionCommonOptions = {
136136 agentConnectTimeoutMilliseconds ?: number ;
137137} ;
138138
139- type UseSessionConfigurableOptions = UseSessionCommonOptions & {
140- tokenFetchOptions : TokenSourceFetchOptions ;
141- } ;
139+ type UseSessionConfigurableOptions = UseSessionCommonOptions & TokenSourceFetchOptions ;
142140type UseSessionFixedOptions = UseSessionCommonOptions ;
143141
144142/**
@@ -379,7 +377,7 @@ export function useSession(
379377 const tokenSourceFetch = useCallback ( async ( ) => {
380378 const isConfigurable = tokenSource instanceof TokenSourceConfigurable ;
381379 if ( isConfigurable ) {
382- const { tokenFetchOptions } = restOptions as UseSessionConfigurableOptions ;
380+ const tokenFetchOptions = restOptions as UseSessionConfigurableOptions ;
383381 return tokenSource . fetch ( tokenFetchOptions ) ;
384382 } else {
385383 return tokenSource . fetch ( ) ;
You can’t perform that action at this time.
0 commit comments