File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/Umbraco.Cms.Integrations.Search.Algolia/Client/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { UMB_AUTH_CONTEXT } from "@umbraco-cms/backoffice/auth";
4
4
import { manifest as algoliaDashboardManifest } from './dashboard/manifest.js' ;
5
5
import { manifest as algoliaContextManifest } from './context/manifest.js' ;
6
6
import { client } from "@umbraco-integrations/algolia/generated" ;
7
+ import { umbHttpClient } from "@umbraco-cms/backoffice/http-client" ;
7
8
8
9
export const onInit : UmbEntryPointOnInit = ( host , extensionRegistry ) => {
9
10
@@ -12,12 +13,6 @@ export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
12
13
host . consumeContext ( UMB_AUTH_CONTEXT , async ( auth ) => {
13
14
if ( ! auth ) return ;
14
15
15
- const config = auth . getOpenApiConfiguration ( ) ;
16
-
17
- client . setConfig ( {
18
- auth : config . token ,
19
- baseUrl : config . base ,
20
- credentials : config . credentials ,
21
- } ) ;
16
+ client . setConfig ( umbHttpClient . getConfig ( ) ) ;
22
17
} ) ;
23
18
} ;
You can’t perform that action at this time.
0 commit comments