From 5ae500981c0c814ff086aabb70a1ae8fa605e1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Sat, 6 Apr 2024 22:17:57 +0200 Subject: [PATCH] chore(examples): use string as `authorization` --- packages/core/src/lib/pages/signin.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/core/src/lib/pages/signin.tsx b/packages/core/src/lib/pages/signin.tsx index f1aba63fd0..f852da8bc2 100644 --- a/packages/core/src/lib/pages/signin.tsx +++ b/packages/core/src/lib/pages/signin.tsx @@ -132,7 +132,7 @@ export default function SigninPage(props: { ;({ bg = "", text = "", - logo = "", + logo = `${provider.id}.svg`, bgDark = bg, textDark = text, logoDark = "", @@ -192,7 +192,9 @@ export default function SigninPage(props: { ) : null} - {(provider.type === "email" || provider.type === "credentials" || provider.type === "webauthn") && + {(provider.type === "email" || + provider.type === "credentials" || + provider.type === "webauthn") && i > 0 && providers[i - 1].type !== "email" && providers[i - 1].type !== "credentials" && @@ -250,7 +252,11 @@ export default function SigninPage(props: { )} {provider.type === "webauthn" && ( -
+ {Object.keys(provider.formFields).map((field) => { return ( @@ -274,12 +280,18 @@ export default function SigninPage(props: { ) })} -
)} - {(provider.type === "email" || provider.type === "credentials" || provider.type === "webauthn") && + {(provider.type === "email" || + provider.type === "credentials" || + provider.type === "webauthn") && i + 1 < providers.length &&
} )