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 <rajeshgoyalg@gmail.com>
This commit is contained in:
Rajesh Goyal
2025-04-19 20:42:17 +05:30
committed by GitHub
parent 9543279630
commit 01501fbb98
@@ -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 => <SignInPage {...props} auto providers={['guest']} />,
},
```
with
```tsx title="packages/app/src/App.tsx"
components: {