From 342a6a9827fc6401173d2ed9399a53d1d0c044e6 Mon Sep 17 00:00:00 2001 From: Karl Haworth Date: Fri, 5 Apr 2024 15:22:54 -0400 Subject: [PATCH] update readme with proper example Signed-off-by: Karl Haworth --- plugins/apollo-explorer/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/apollo-explorer/README.md b/plugins/apollo-explorer/README.md index b26f157635..bc06612cab 100644 --- a/plugins/apollo-explorer/README.md +++ b/plugins/apollo-explorer/README.md @@ -81,7 +81,7 @@ import { ApolloExplorerPage, EndpointProps } from '@backstage/plugin-apollo-expl import { ssoAuthApiRef } from '@companyxyz/devkit'; import { ApiHolder } from '@backstage/core-plugin-api'; -async function authCallback(options: { apiHolder: ApiHolder }): Promise { +async function authCallback(options: { apiHolder: ApiHolder }): Promise<{token: string}> { const sso = options.apiHolder.get(ssoAuthApiRef) return await sso.getToken() } @@ -96,9 +96,9 @@ const routes = ( endpoints={[{ title: 'Github', graphRef: 'my-github-graph-ref@current', + authCallback: authCallback }]} /> } - authCallback={authCallback} /> ```