@@ -22,11 +22,7 @@ import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript";
2222import { SpeakeasyProvider } from " @speakeasy-api/speakeasy-client-sdk-typescript/react-query" ;
2323
2424const queryClient = new QueryClient ();
25- const speakeasy = new SpeakeasyCore ({
26- security: {
27- apiKey: " <YOUR_API_KEY_HERE>" ,
28- },
29- });
25+ const speakeasy = new SpeakeasyCore ();
3026
3127// Retries are handled by the underlying SDK.
3228queryClient .setQueryDefaults ([" @speakeasy-api/speakeasy-client-sdk-typescript" ], { retry: false });
@@ -233,7 +229,9 @@ infinite scrolling and "load more" user interfaces.
233229import { useEventsGetTargetsSummaryInfinite } from " @speakeasy-api/speakeasy-client-sdk-typescript/react-query/eventsGetTargetsSummary.js" ;
234230
235231export function Example() {
236- const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite ({});
232+ const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite ({
233+ apiKey: " <YOUR_API_KEY_HERE>" ,
234+ }, {});
237235
238236 return (
239237 <div >
@@ -267,11 +265,7 @@ import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescrip
267265import { useArtifactsGetBlobSuspense } from " @speakeasy-api/speakeasy-client-sdk-typescript/react-query/artifactsGetBlob.js" ;
268266
269267const queryClient = new QueryClient ();
270- const speakeasy = new SpeakeasyCore ({
271- security: {
272- apiKey: " <YOUR_API_KEY_HERE>" ,
273- },
274- });
268+ const speakeasy = new SpeakeasyCore ();
275269
276270export function App() {
277271 return (
@@ -330,11 +324,7 @@ import { prefetchArtifactsGetBlob } from "@speakeasy-api/speakeasy-client-sdk-ty
330324
331325export default async function Page() {
332326 const queryClient = new QueryClient ();
333- const speakeasy = new SpeakeasyCore ({
334- security: {
335- apiKey: " <YOUR_API_KEY_HERE>" ,
336- },
337- });
327+ const speakeasy = new SpeakeasyCore ();
338328
339329 await prefetchArtifactsGetBlob (queryClient , speakeasy , {
340330 organizationSlug: " <value>" ,
0 commit comments