docs: update auth docs to mention and prefer single-provider SignInPage

This commit is contained in:
Patrik Oldsberg
2021-01-28 19:25:58 +01:00
parent 01058d486c
commit 23381386d6
2 changed files with 14 additions and 17 deletions
+12 -16
View File
@@ -349,22 +349,18 @@ const app = createApp({
apis,
plugins: Object.values(plugins),
components: {
SignInPage: props => {
return (
<SignInPage
{...props}
providers={[
{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Simple Backstage Application Login',
apiRef: githubAuthApiRef,
},
]}
align="center"
/>
);
},
SignInPage: props => (
<SignInPage
{...props}
auto
provider={{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Simple Backstage Application Login',
apiRef: githubAuthApiRef,
}}
/>
),
},
});
```