File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
16/umbraco-cms/customizing/foundation/fetching-data Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,14 @@ import { client } from './my-client/client.gen';
4848
4949export const onInit = (host ) => {
5050 host .consumeContext (UMB_AUTH_CONTEXT , (authContext ) => {
51- // Get the token info from Umbraco
52- const config = authContext? .getOpenApiConfiguration ();
53-
54- client .setConfig ({
55- auth: config? .token ?? undefined ,
56- baseUrl: config? .base ?? " " ,
57- credentials: config? .credentials ?? " same-origin" ,
51+ // Get the token info from Umbraco
52+ const config = authContext? .getOpenApiConfiguration ();
53+
54+ client .setConfig ({
55+ auth: config? .token ?? undefined ,
56+ baseUrl: config? .base ?? " " ,
57+ credentials: config? .credentials ?? " same-origin" ,
58+ });
5859 });
5960};
6061` ` `
You can’t perform that action at this time.
0 commit comments