We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
authorization
OSO_API_TOKEN
1 parent deeaaa5 commit 104183eCopy full SHA for 104183e
frontend/src/oso-extensions/wrapper.tsx
@@ -5,6 +5,7 @@ import { PyodideBridge } from "@/core/wasm/bridge";
5
import { useFragmentStore } from "./fragment-store";
6
import { userConfigAtom } from "@/core/config/config";
7
import { store } from "@/core/state/jotai";
8
+import { runtimeConfigAtom } from "@/core/runtime/config";
9
10
const COMMAND_PREFIX = "oso_commands:";
11
@@ -96,6 +97,12 @@ export const OSOWrapper: React.FC<PropsWithChildren> = ({ children }) => {
96
97
},
98
99
}));
100
+
101
+ // Set the OSO API key as the auth token in the runtime config
102
+ store.set(runtimeConfigAtom, (prev) => ({
103
+ ...prev,
104
+ authToken: osoApiKey,
105
+ }));
106
}
107
108
0 commit comments