mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
fix: eslint issues.
This commit is contained in:
parent
091d4f3192
commit
1ab5bc425d
3 changed files with 6 additions and 12 deletions
|
|
@ -51,7 +51,7 @@ router.get('/', async function (req, res) {
|
||||||
!!process.env.APPLE_TEAM_ID &&
|
!!process.env.APPLE_TEAM_ID &&
|
||||||
!!process.env.APPLE_KEY_ID &&
|
!!process.env.APPLE_KEY_ID &&
|
||||||
!!process.env.APPLE_PRIVATE_KEY_PATH,
|
!!process.env.APPLE_PRIVATE_KEY_PATH,
|
||||||
passkeyLoginEnabled : !!process.env.PASSKEY_ENABLED && !!process.env.RP_ID,
|
passkeyLoginEnabled: !!process.env.PASSKEY_ENABLED && !!process.env.RP_ID,
|
||||||
openidLoginEnabled:
|
openidLoginEnabled:
|
||||||
!!process.env.OPENID_CLIENT_ID &&
|
!!process.env.OPENID_CLIENT_ID &&
|
||||||
!!process.env.OPENID_CLIENT_SECRET &&
|
!!process.env.OPENID_CLIENT_SECRET &&
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,6 @@ function AuthLayout({
|
||||||
{header}
|
{header}
|
||||||
</h1>
|
</h1>
|
||||||
)}
|
)}
|
||||||
{/* Conditionally render the default content or the PasskeyAuth component */}
|
|
||||||
{showPasskey ? (
|
{showPasskey ? (
|
||||||
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
|
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -124,21 +124,16 @@ function SocialLoginRender({ startupConfig, mode, onPasskeyClick }: SocialLoginR
|
||||||
{startupConfig.passkeyLoginEnabled && (
|
{startupConfig.passkeyLoginEnabled && (
|
||||||
|
|
||||||
<div className="mt-2 flex gap-x-2">
|
<div className="mt-2 flex gap-x-2">
|
||||||
<a
|
<button
|
||||||
aria-label={passkeyLabel}
|
aria-label={passkeyLabel}
|
||||||
className="flex w-full items-center space-x-3 rounded-2xl border border-border-light bg-surface-primary px-5 py-3 text-text-primary transition-colors duration-200 hover:bg-surface-tertiary"
|
className="flex w-full items-center space-x-3 rounded-2xl border border-border-light bg-surface-primary px-5 py-3 text-text-primary transition-colors duration-200 hover:bg-surface-tertiary"
|
||||||
data-testid='passkey'
|
data-testid="passkey"
|
||||||
href=''
|
type="button"
|
||||||
onClick={(e) => {
|
onClick={onPasskeyClick}
|
||||||
e.preventDefault();
|
|
||||||
if (onPasskeyClick) {
|
|
||||||
onPasskeyClick();
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<PasskeyIcon />
|
<PasskeyIcon />
|
||||||
<p>{passkeyLabel}</p>
|
<p>{passkeyLabel}</p>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue