From 6f40c8b66b5eac73e5d3c91b6e715bb9cd32080a Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Tue, 23 Mar 2021 00:21:30 +0100 Subject: [PATCH] feat: document method to set token cookie Signed-off-by: Erik Larsson --- contrib/docs/tutorials/authenticate-api-requests.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/contrib/docs/tutorials/authenticate-api-requests.md b/contrib/docs/tutorials/authenticate-api-requests.md index bf04d9cdef..897e2378e7 100644 --- a/contrib/docs/tutorials/authenticate-api-requests.md +++ b/contrib/docs/tutorials/authenticate-api-requests.md @@ -99,10 +99,7 @@ async function main() { ```typescript // packages/app/src/App.tsx from a create-app deployment -import { - discoveryApiRef, - useApi, -} from '@backstage/core'; +import { discoveryApiRef, useApi } from '@backstage/core'; // ... @@ -151,7 +148,6 @@ async function setAuthCookie(url, getIdToken) { } const app = createApp({ - // ... components: { @@ -176,4 +172,9 @@ const app = createApp({ ); }, }, + + // ... +}); + +// ... ```