From 01501fbb9839f8e059077a3e6d3e7c7b00287b06 Mon Sep 17 00:00:00 2001 From: Rajesh Goyal Date: Sat, 19 Apr 2025 20:42:17 +0530 Subject: [PATCH] Update authentication.md There is already a SignInPage component exists. To add GitHub as a provider, existing SignInPage component need to modify instead of creating a new SignInPage for GitHub provider. Signed-off-by: Rajesh Goyal --- docs/getting-started/config/authentication.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/config/authentication.md b/docs/getting-started/config/authentication.md index 2442d2b767..25f3fe05cd 100644 --- a/docs/getting-started/config/authentication.md +++ b/docs/getting-started/config/authentication.md @@ -56,7 +56,15 @@ Open `packages/app/src/App.tsx` and below the last `import` line, add: import { githubAuthApiRef } from '@backstage/core-plugin-api'; ``` -Search for `const app = createApp({` in this file, and below `apis,` add: +Search for `const app = createApp({` in this file, and replace: + +```tsx title="packages/app/src/App.tsx" +components: { + SignInPage: props => , + }, +``` + +with ```tsx title="packages/app/src/App.tsx" components: {