@sylphx/auth-solid 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -3
- package/dist/browser.js +797 -335
- package/dist/index.d.ts +2 -1
- package/dist/locale.d.ts +1 -1
- package/dist/messages-iberian.d.ts +154 -0
- package/dist/messages.d.ts +223 -0
- package/dist/passkey-enroll.d.ts +11 -0
- package/dist/server.js +523 -124
- package/dist/sign-in-controller.d.ts +13 -22
- package/dist/sign-in-messages.d.ts +3 -0
- package/dist/sign-in-request.d.ts +24 -0
- package/dist/sign-in-webauthn.d.ts +2 -0
- package/dist/sign-in.css +9 -0
- package/dist/sign-in.d.ts +7 -2
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -4,6 +4,15 @@ import { For, Match, Show, Switch, createEffect, createMemo, createSignal, creat
|
|
|
4
4
|
// src/messages.ts
|
|
5
5
|
var catalogs = {
|
|
6
6
|
en: {
|
|
7
|
+
lastUsed: "Last used",
|
|
8
|
+
forgotPassword: "Forgot your password?",
|
|
9
|
+
recoverAccount: "Reset your password",
|
|
10
|
+
recoverDescription: "Enter the email address for your account.",
|
|
11
|
+
sendResetLink: "Send reset link",
|
|
12
|
+
recoverySent: "Check your inbox",
|
|
13
|
+
recoverySentDescription: "If an account exists for this address, you’ll receive a password reset link.",
|
|
14
|
+
addPasskey: "Add a passkey",
|
|
15
|
+
passkeyAdded: "Passkey added",
|
|
7
16
|
signIn: "Sign in",
|
|
8
17
|
enterPassword: "Enter your password",
|
|
9
18
|
createYourAccount: "Create your account",
|
|
@@ -72,6 +81,15 @@ var catalogs = {
|
|
|
72
81
|
}
|
|
73
82
|
},
|
|
74
83
|
"zh-Hant-HK": {
|
|
84
|
+
lastUsed: "上次使用",
|
|
85
|
+
forgotPassword: "忘記密碼?",
|
|
86
|
+
recoverAccount: "重設密碼",
|
|
87
|
+
recoverDescription: "請輸入帳戶的電郵地址。",
|
|
88
|
+
sendResetLink: "傳送重設連結",
|
|
89
|
+
recoverySent: "查閱收件箱",
|
|
90
|
+
recoverySentDescription: "如這個電郵地址已連結帳戶,你將收到密碼重設連結。",
|
|
91
|
+
addPasskey: "新增通行密鑰",
|
|
92
|
+
passkeyAdded: "已新增通行密鑰",
|
|
75
93
|
signIn: "登入",
|
|
76
94
|
enterPassword: "輸入密碼",
|
|
77
95
|
createYourAccount: "建立帳戶",
|
|
@@ -140,6 +158,15 @@ var catalogs = {
|
|
|
140
158
|
}
|
|
141
159
|
},
|
|
142
160
|
"zh-Hant-TW": {
|
|
161
|
+
lastUsed: "上次使用",
|
|
162
|
+
forgotPassword: "忘記密碼?",
|
|
163
|
+
recoverAccount: "重設密碼",
|
|
164
|
+
recoverDescription: "請輸入帳戶的電子郵件地址。",
|
|
165
|
+
sendResetLink: "傳送重設連結",
|
|
166
|
+
recoverySent: "查看收件匣",
|
|
167
|
+
recoverySentDescription: "如果這個電子郵件地址已連結帳戶,你會收到密碼重設連結。",
|
|
168
|
+
addPasskey: "新增通行密鑰",
|
|
169
|
+
passkeyAdded: "已新增通行密鑰",
|
|
143
170
|
signIn: "登入",
|
|
144
171
|
enterPassword: "輸入密碼",
|
|
145
172
|
createYourAccount: "建立帳號",
|
|
@@ -208,6 +235,15 @@ var catalogs = {
|
|
|
208
235
|
}
|
|
209
236
|
},
|
|
210
237
|
"zh-Hans": {
|
|
238
|
+
lastUsed: "上次使用",
|
|
239
|
+
forgotPassword: "忘记密码?",
|
|
240
|
+
recoverAccount: "重置密码",
|
|
241
|
+
recoverDescription: "请输入账户的电子邮箱。",
|
|
242
|
+
sendResetLink: "发送重置链接",
|
|
243
|
+
recoverySent: "查看收件箱",
|
|
244
|
+
recoverySentDescription: "如果此邮箱关联了账户,你将收到密码重置链接。",
|
|
245
|
+
addPasskey: "添加通行密钥",
|
|
246
|
+
passkeyAdded: "已添加通行密钥",
|
|
211
247
|
signIn: "登录",
|
|
212
248
|
enterPassword: "输入密码",
|
|
213
249
|
createYourAccount: "创建账号",
|
|
@@ -276,6 +312,15 @@ var catalogs = {
|
|
|
276
312
|
}
|
|
277
313
|
},
|
|
278
314
|
ja: {
|
|
315
|
+
lastUsed: "前回使用",
|
|
316
|
+
forgotPassword: "パスワードをお忘れですか?",
|
|
317
|
+
recoverAccount: "パスワードを再設定",
|
|
318
|
+
recoverDescription: "アカウントのメールアドレスを入力してください。",
|
|
319
|
+
sendResetLink: "再設定リンクを送信",
|
|
320
|
+
recoverySent: "メールを確認",
|
|
321
|
+
recoverySentDescription: "該当するアカウントがある場合、再設定リンクが届きます。",
|
|
322
|
+
addPasskey: "パスキーを追加",
|
|
323
|
+
passkeyAdded: "パスキーを追加しました",
|
|
279
324
|
signIn: "ログイン",
|
|
280
325
|
enterPassword: "パスワードを入力",
|
|
281
326
|
createYourAccount: "アカウントを作成",
|
|
@@ -344,6 +389,15 @@ var catalogs = {
|
|
|
344
389
|
}
|
|
345
390
|
},
|
|
346
391
|
ko: {
|
|
392
|
+
lastUsed: "최근 사용",
|
|
393
|
+
forgotPassword: "비밀번호를 잊으셨나요?",
|
|
394
|
+
recoverAccount: "비밀번호 재설정",
|
|
395
|
+
recoverDescription: "계정의 이메일 주소를 입력하세요.",
|
|
396
|
+
sendResetLink: "재설정 링크 보내기",
|
|
397
|
+
recoverySent: "받은편지함을 확인하세요",
|
|
398
|
+
recoverySentDescription: "이 주소에 연결된 계정이 있다면 비밀번호 재설정 링크가 전송됩니다.",
|
|
399
|
+
addPasskey: "패스키 추가",
|
|
400
|
+
passkeyAdded: "패스키가 추가되었습니다",
|
|
347
401
|
signIn: "로그인",
|
|
348
402
|
enterPassword: "비밀번호를 입력하세요",
|
|
349
403
|
createYourAccount: "계정 만들기",
|
|
@@ -410,6 +464,160 @@ var catalogs = {
|
|
|
410
464
|
try_later: "시도 횟수가 너무 많습니다. 잠시 후 다시 시도하세요.",
|
|
411
465
|
unavailable: "연결하지 못했습니다. 잠시 후 다시 시도하세요."
|
|
412
466
|
}
|
|
467
|
+
},
|
|
468
|
+
es: {
|
|
469
|
+
lastUsed: "Último método usado",
|
|
470
|
+
forgotPassword: "¿Olvidaste tu contraseña?",
|
|
471
|
+
recoverAccount: "Restablece tu contraseña",
|
|
472
|
+
recoverDescription: "Introduce el correo de tu cuenta.",
|
|
473
|
+
sendResetLink: "Enviar enlace de recuperación",
|
|
474
|
+
recoverySent: "Revisa tu bandeja de entrada",
|
|
475
|
+
recoverySentDescription: "Si hay una cuenta asociada a este correo, recibirás un enlace para restablecer la contraseña.",
|
|
476
|
+
addPasskey: "Añadir una llave de acceso",
|
|
477
|
+
passkeyAdded: "Llave de acceso añadida",
|
|
478
|
+
signIn: "Inicia sesión",
|
|
479
|
+
enterPassword: "Introduce tu contraseña",
|
|
480
|
+
createYourAccount: "Crea tu cuenta",
|
|
481
|
+
checkInbox: "Revisa tu bandeja de entrada",
|
|
482
|
+
confirmEmail: "Confirma tu correo electrónico",
|
|
483
|
+
verifyIdentity: "Verifica tu identidad",
|
|
484
|
+
chooseMethod: "Elige cómo quieres iniciar sesión.",
|
|
485
|
+
startWithEmail: "Usa tu correo electrónico para empezar.",
|
|
486
|
+
checkEmailDescription: "Si esta dirección es nueva, te enviaremos un enlace de confirmación. Ábrelo e introduce la contraseña que elegiste.",
|
|
487
|
+
confirmEmailDescription: "Introduce el correo y la contraseña que usaste para registrarte.",
|
|
488
|
+
enterEmailCode: (email) => `Introduce el código de seis dígitos que enviamos a ${email}.`,
|
|
489
|
+
enterRecovery: "Introduce uno de tus códigos de recuperación guardados.",
|
|
490
|
+
enterAuthenticator: "Introduce el código de tu aplicación de autenticación.",
|
|
491
|
+
loading: "Cargando opciones de acceso…",
|
|
492
|
+
retry: "Volver a intentar",
|
|
493
|
+
openingProvider: (provider) => `Abriendo ${provider}…`,
|
|
494
|
+
continueProvider: (provider) => `Continuar con ${provider}`,
|
|
495
|
+
orEmail: "o usa tu correo electrónico",
|
|
496
|
+
email: "Correo electrónico",
|
|
497
|
+
sendingCode: "Enviando el código…",
|
|
498
|
+
emailCodeAction: "Enviarme un código",
|
|
499
|
+
continueEmail: "Continuar con correo electrónico",
|
|
500
|
+
waitingPasskey: "Esperando tu llave de acceso…",
|
|
501
|
+
usePasskey: "Usar una llave de acceso",
|
|
502
|
+
newHere: "¿No tienes cuenta?",
|
|
503
|
+
createAnAccount: "Crea una cuenta",
|
|
504
|
+
noMethods: "No hay métodos de inicio de sesión disponibles ahora.",
|
|
505
|
+
password: "Contraseña",
|
|
506
|
+
hidePassword: "Ocultar contraseña",
|
|
507
|
+
showPassword: "Mostrar contraseña",
|
|
508
|
+
hide: "Ocultar",
|
|
509
|
+
show: "Mostrar",
|
|
510
|
+
minimumPassword: "Usa al menos 12 caracteres.",
|
|
511
|
+
working: "Un momento…",
|
|
512
|
+
createAccount: "Crear cuenta",
|
|
513
|
+
confirmAndSignIn: "Confirmar e iniciar sesión",
|
|
514
|
+
changeEmailOrMethod: "Cambiar de correo o método de acceso",
|
|
515
|
+
backToSignIn: "Volver al inicio de sesión",
|
|
516
|
+
emailCode: "Código de correo electrónico",
|
|
517
|
+
checkingCode: "Comprobando el código…",
|
|
518
|
+
verifyCode: "Verificar código",
|
|
519
|
+
resendIn: (duration) => `Reenviar en ${duration}`,
|
|
520
|
+
resendCode: "Reenviar código",
|
|
521
|
+
changeEmail: "Cambiar de correo",
|
|
522
|
+
usePassword: "Usar contraseña",
|
|
523
|
+
recoveryCode: "Código de recuperación",
|
|
524
|
+
authenticatorCode: "Código de autenticación",
|
|
525
|
+
verifyAndSignIn: "Verificar e iniciar sesión",
|
|
526
|
+
useAuthenticator: "Usar la aplicación de autenticación",
|
|
527
|
+
useRecovery: "Usar un código de recuperación",
|
|
528
|
+
language: "Idioma",
|
|
529
|
+
errors: {
|
|
530
|
+
signin: "No se completó el inicio de sesión. Inténtalo de nuevo o elige otro método.",
|
|
531
|
+
cancelled: "Se canceló el inicio de sesión. Puedes volver a intentarlo cuando quieras.",
|
|
532
|
+
use_existing: "Usa el método con el que iniciaste sesión la primera vez. Este proveedor no pudo confirmar tu correo.",
|
|
533
|
+
invalid_credentials: "El correo y la contraseña no coinciden. Comprueba ambos e inténtalo de nuevo.",
|
|
534
|
+
acceptance_required: "Acepta las condiciones vigentes para continuar.",
|
|
535
|
+
verify_email: "Confirma tu correo con el enlace de tu bandeja de entrada antes de iniciar sesión.",
|
|
536
|
+
verification_failed: "No se pudo usar este enlace de confirmación. Comprueba que abriste el más reciente.",
|
|
537
|
+
invalid_code: "El código no es válido. Revísalo e inténtalo de nuevo.",
|
|
538
|
+
method_unavailable: "Este método no está disponible ahora. Prueba otro.",
|
|
539
|
+
signup_failed: "No pudimos iniciar el registro. Comprueba tus datos e inténtalo de nuevo.",
|
|
540
|
+
invalid_input: "Comprueba tus datos e inténtalo de nuevo.",
|
|
541
|
+
try_later: "Demasiados intentos. Espera un momento antes de volver a intentarlo.",
|
|
542
|
+
unavailable: "No pudimos conectarnos. Inténtalo de nuevo en un momento."
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"pt-BR": {
|
|
546
|
+
lastUsed: "Último método usado",
|
|
547
|
+
forgotPassword: "Esqueceu sua senha?",
|
|
548
|
+
recoverAccount: "Redefina sua senha",
|
|
549
|
+
recoverDescription: "Digite o e-mail da sua conta.",
|
|
550
|
+
sendResetLink: "Enviar link de redefinição",
|
|
551
|
+
recoverySent: "Confira sua caixa de entrada",
|
|
552
|
+
recoverySentDescription: "Se houver uma conta com esse e-mail, você receberá um link para redefinir a senha.",
|
|
553
|
+
addPasskey: "Adicionar uma chave de acesso",
|
|
554
|
+
passkeyAdded: "Chave de acesso adicionada",
|
|
555
|
+
signIn: "Entrar",
|
|
556
|
+
enterPassword: "Digite sua senha",
|
|
557
|
+
createYourAccount: "Crie sua conta",
|
|
558
|
+
checkInbox: "Confira sua caixa de entrada",
|
|
559
|
+
confirmEmail: "Confirme seu e-mail",
|
|
560
|
+
verifyIdentity: "Confirme que é você",
|
|
561
|
+
chooseMethod: "Escolha como você quer entrar.",
|
|
562
|
+
startWithEmail: "Use seu e-mail para começar.",
|
|
563
|
+
checkEmailDescription: "Se este endereço for novo, enviaremos um link de confirmação. Abra o link e digite a senha que você escolheu.",
|
|
564
|
+
confirmEmailDescription: "Digite o e-mail e a senha que você usou no cadastro.",
|
|
565
|
+
enterEmailCode: (email) => `Digite o código de seis dígitos que enviamos para ${email}.`,
|
|
566
|
+
enterRecovery: "Digite um dos códigos de recuperação que você guardou.",
|
|
567
|
+
enterAuthenticator: "Digite o código do seu aplicativo autenticador.",
|
|
568
|
+
loading: "Carregando opções de login…",
|
|
569
|
+
retry: "Tentar novamente",
|
|
570
|
+
openingProvider: (provider) => `Abrindo ${provider}…`,
|
|
571
|
+
continueProvider: (provider) => `Continuar com ${provider}`,
|
|
572
|
+
orEmail: "ou use seu e-mail",
|
|
573
|
+
email: "Endereço de e-mail",
|
|
574
|
+
sendingCode: "Enviando código…",
|
|
575
|
+
emailCodeAction: "Enviar um código por e-mail",
|
|
576
|
+
continueEmail: "Continuar com e-mail",
|
|
577
|
+
waitingPasskey: "Aguardando sua chave de acesso…",
|
|
578
|
+
usePasskey: "Usar uma chave de acesso",
|
|
579
|
+
newHere: "Ainda não tem conta?",
|
|
580
|
+
createAnAccount: "Crie uma conta",
|
|
581
|
+
noMethods: "Nenhum método de login está disponível no momento.",
|
|
582
|
+
password: "Senha",
|
|
583
|
+
hidePassword: "Ocultar senha",
|
|
584
|
+
showPassword: "Mostrar senha",
|
|
585
|
+
hide: "Ocultar",
|
|
586
|
+
show: "Mostrar",
|
|
587
|
+
minimumPassword: "Use pelo menos 12 caracteres.",
|
|
588
|
+
working: "Aguarde…",
|
|
589
|
+
createAccount: "Criar conta",
|
|
590
|
+
confirmAndSignIn: "Confirmar e entrar",
|
|
591
|
+
changeEmailOrMethod: "Trocar e-mail ou método de login",
|
|
592
|
+
backToSignIn: "Voltar para o login",
|
|
593
|
+
emailCode: "Código por e-mail",
|
|
594
|
+
checkingCode: "Verificando código…",
|
|
595
|
+
verifyCode: "Verificar código",
|
|
596
|
+
resendIn: (duration) => `Reenviar em ${duration}`,
|
|
597
|
+
resendCode: "Reenviar código",
|
|
598
|
+
changeEmail: "Trocar e-mail",
|
|
599
|
+
usePassword: "Usar senha",
|
|
600
|
+
recoveryCode: "Código de recuperação",
|
|
601
|
+
authenticatorCode: "Código do autenticador",
|
|
602
|
+
verifyAndSignIn: "Verificar e entrar",
|
|
603
|
+
useAuthenticator: "Usar o aplicativo autenticador",
|
|
604
|
+
useRecovery: "Usar um código de recuperação",
|
|
605
|
+
language: "Idioma",
|
|
606
|
+
errors: {
|
|
607
|
+
signin: "Não foi possível concluir o login. Tente novamente ou escolha outro método.",
|
|
608
|
+
cancelled: "O login foi cancelado. Você pode tentar novamente quando quiser.",
|
|
609
|
+
use_existing: "Use o método com o qual você entrou pela primeira vez. Este provedor não conseguiu confirmar seu e-mail.",
|
|
610
|
+
invalid_credentials: "O e-mail e a senha não correspondem. Confira os dois e tente novamente.",
|
|
611
|
+
acceptance_required: "Aceite os termos atuais para continuar.",
|
|
612
|
+
verify_email: "Antes de entrar, confirme seu e-mail pelo link na sua caixa de entrada.",
|
|
613
|
+
verification_failed: "Não foi possível usar este link de confirmação. Confira se você abriu o mais recente.",
|
|
614
|
+
invalid_code: "O código não funcionou. Confira e tente novamente.",
|
|
615
|
+
method_unavailable: "Este método de login não está disponível no momento. Tente outro.",
|
|
616
|
+
signup_failed: "Não foi possível iniciar o cadastro. Confira seus dados e tente novamente.",
|
|
617
|
+
invalid_input: "Confira seus dados e tente novamente.",
|
|
618
|
+
try_later: "Muitas tentativas. Aguarde um momento e tente novamente.",
|
|
619
|
+
unavailable: "Não foi possível conectar. Tente novamente em instantes."
|
|
620
|
+
}
|
|
413
621
|
}
|
|
414
622
|
};
|
|
415
623
|
var localeNames = {
|
|
@@ -418,8 +626,21 @@ var localeNames = {
|
|
|
418
626
|
"zh-Hant-TW": "繁體中文(台灣)",
|
|
419
627
|
"zh-Hans": "简体中文",
|
|
420
628
|
ja: "日本語",
|
|
421
|
-
ko: "한국어"
|
|
629
|
+
ko: "한국어",
|
|
630
|
+
es: "Español",
|
|
631
|
+
"pt-BR": "Português (Brasil)"
|
|
422
632
|
};
|
|
633
|
+
function resolveSignInMessages(locale, messages) {
|
|
634
|
+
const base = catalogs[locale];
|
|
635
|
+
return messages ? {
|
|
636
|
+
...base,
|
|
637
|
+
...messages,
|
|
638
|
+
errors: {
|
|
639
|
+
...base.errors,
|
|
640
|
+
...messages.errors
|
|
641
|
+
}
|
|
642
|
+
} : base;
|
|
643
|
+
}
|
|
423
644
|
/** Select a shipped language without comparing raw locale strings or relying on the host's locale. */
|
|
424
645
|
function resolveAuthLocale(preferences) {
|
|
425
646
|
for (const preference of preferences) {
|
|
@@ -430,7 +651,7 @@ function resolveAuthLocale(preferences) {
|
|
|
430
651
|
continue;
|
|
431
652
|
}
|
|
432
653
|
if (Object.hasOwn(catalogs, locale.baseName)) return locale.baseName;
|
|
433
|
-
if (locale.language === "en" || locale.language === "ja" || locale.language === "ko") return locale.language;
|
|
654
|
+
if (locale.language === "en" || locale.language === "ja" || locale.language === "ko" || locale.language === "es") return locale.language;
|
|
434
655
|
if (locale.language === "zh") {
|
|
435
656
|
const script = locale.maximize().script;
|
|
436
657
|
if (script === "Hans") return "zh-Hans";
|
|
@@ -447,6 +668,105 @@ function authSecondsFormat(locale) {
|
|
|
447
668
|
unitDisplay: "short"
|
|
448
669
|
});
|
|
449
670
|
}
|
|
671
|
+
// src/sign-in-messages.ts
|
|
672
|
+
/** Use the host's explicit language tag when the host also provides its copy. */
|
|
673
|
+
function signInLanguage(fallback, locale, messages) {
|
|
674
|
+
if (locale !== void 0 && messages !== void 0) try {
|
|
675
|
+
return new Intl.Locale(locale).toString();
|
|
676
|
+
} catch {}
|
|
677
|
+
return fallback;
|
|
678
|
+
}
|
|
679
|
+
// src/sign-in-request.ts
|
|
680
|
+
var errors$1 = catalogs.en.errors;
|
|
681
|
+
errors$1.unavailable;
|
|
682
|
+
function isErrorCode(value) {
|
|
683
|
+
return typeof value === "string" && Object.hasOwn(errors$1, value);
|
|
684
|
+
}
|
|
685
|
+
var SignInError = class extends Error {
|
|
686
|
+
code;
|
|
687
|
+
constructor(code) {
|
|
688
|
+
super(code);
|
|
689
|
+
this.code = code;
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
async function postAuthJSON(path, body, signal) {
|
|
693
|
+
signal.throwIfAborted();
|
|
694
|
+
const res = await fetch(path, {
|
|
695
|
+
method: "POST",
|
|
696
|
+
headers: { "Content-Type": "application/json" },
|
|
697
|
+
credentials: "same-origin",
|
|
698
|
+
referrerPolicy: "origin",
|
|
699
|
+
redirect: "error",
|
|
700
|
+
signal: AbortSignal.any([signal, AbortSignal.timeout(45e3)]),
|
|
701
|
+
body: JSON.stringify(body)
|
|
702
|
+
});
|
|
703
|
+
const data = await res.json();
|
|
704
|
+
if (!res.ok) {
|
|
705
|
+
const code = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
706
|
+
throw new SignInError(isErrorCode(code) ? code : "unavailable");
|
|
707
|
+
}
|
|
708
|
+
return data;
|
|
709
|
+
}
|
|
710
|
+
// src/sign-in-webauthn.ts
|
|
711
|
+
function decodeBase64Url(value) {
|
|
712
|
+
return Uint8Array.from(atob(value.replace(/-/g, "+").replace(/_/g, "/")), (c) => c.charCodeAt(0));
|
|
713
|
+
}
|
|
714
|
+
function encodeBase64Url(value) {
|
|
715
|
+
return btoa(Array.from(new Uint8Array(value), (byte) => String.fromCharCode(byte)).join("")).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
716
|
+
}
|
|
717
|
+
// src/passkey-enroll.tsx
|
|
718
|
+
var _tmpl$$2 = [
|
|
719
|
+
"<output",
|
|
720
|
+
">",
|
|
721
|
+
"</output>"
|
|
722
|
+
];
|
|
723
|
+
var _tmpl$2$2 = [
|
|
724
|
+
"<div",
|
|
725
|
+
"><button type=\"button\"",
|
|
726
|
+
"",
|
|
727
|
+
">",
|
|
728
|
+
"</button><!--$-->",
|
|
729
|
+
"<!--/--><!--$-->",
|
|
730
|
+
"<!--/--></div>"
|
|
731
|
+
];
|
|
732
|
+
var _tmpl$3$2 = [
|
|
733
|
+
"<p",
|
|
734
|
+
" role=\"alert\">",
|
|
735
|
+
"</p>"
|
|
736
|
+
];
|
|
737
|
+
/** Add a discoverable passkey to the current account. Never takes identity or tokens from the UI. */
|
|
738
|
+
function SylphxPasskeyEnroll(props) {
|
|
739
|
+
`${authRoutePrefix(props.routePrefix)}`;
|
|
740
|
+
const owner = new AbortController();
|
|
741
|
+
const [supported, setSupported] = createSignal(false);
|
|
742
|
+
const [busy, setBusy] = createSignal(false);
|
|
743
|
+
const [added, setAdded] = createSignal(false);
|
|
744
|
+
const [error, setError] = createSignal();
|
|
745
|
+
const locale = () => resolveAuthLocale(props.locale ? [props.locale] : []);
|
|
746
|
+
const text = createMemo(() => resolveSignInMessages(locale(), props.messages));
|
|
747
|
+
onMount(() => setSupported(window.isSecureContext && typeof PublicKeyCredential !== "undefined"));
|
|
748
|
+
onCleanup(() => owner.abort());
|
|
749
|
+
return createComponent(Show, {
|
|
750
|
+
get when() {
|
|
751
|
+
return memo(() => !!supported())() && props.enabled;
|
|
752
|
+
},
|
|
753
|
+
get children() {
|
|
754
|
+
return ssr(_tmpl$2$2, ssrHydrationKey() + ssrAttribute("lang", escape(signInLanguage(locale(), props.locale, props.messages), true), false), ssrAttribute("class", escape(props.class ?? "auth-sign-in-secondary", true), false), ssrAttribute("disabled", busy(), true), busy() ? escape(text().working) : escape(text().addPasskey), escape(createComponent(Show, {
|
|
755
|
+
get when() {
|
|
756
|
+
return error();
|
|
757
|
+
},
|
|
758
|
+
children: (code) => ssr(_tmpl$3$2, ssrHydrationKey(), escape(text().errors[code()]))
|
|
759
|
+
})), escape(createComponent(Show, {
|
|
760
|
+
get when() {
|
|
761
|
+
return added();
|
|
762
|
+
},
|
|
763
|
+
get children() {
|
|
764
|
+
return ssr(_tmpl$$2, ssrHydrationKey(), escape(text().passkeyAdded));
|
|
765
|
+
}
|
|
766
|
+
})));
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
}
|
|
450
770
|
// src/provider-icons.tsx
|
|
451
771
|
var _tmpl$$1 = ["<svg", " aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"19\" height=\"19\"><path d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\" fill=\"#4285F4\"></path><path d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\" fill=\"#34A853\"></path><path d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\" fill=\"#FBBC05\"></path><path d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\" fill=\"#EA4335\"></path></svg>"];
|
|
452
772
|
var _tmpl$2$1 = ["<svg", " aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"19\" height=\"19\"><path d=\"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z\"></path></svg>"];
|
|
@@ -470,23 +790,6 @@ function FacebookIcon() {
|
|
|
470
790
|
}
|
|
471
791
|
// src/sign-in-controller.ts
|
|
472
792
|
var errors = catalogs.en.errors;
|
|
473
|
-
errors.unavailable;
|
|
474
|
-
function isErrorCode(value) {
|
|
475
|
-
return typeof value === "string" && Object.hasOwn(errors, value);
|
|
476
|
-
}
|
|
477
|
-
var SignInError = class extends Error {
|
|
478
|
-
code;
|
|
479
|
-
constructor(code) {
|
|
480
|
-
super(code);
|
|
481
|
-
this.code = code;
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
function decode(value) {
|
|
485
|
-
return Uint8Array.from(atob(value.replace(/-/g, "+").replace(/_/g, "/")), (c) => c.charCodeAt(0));
|
|
486
|
-
}
|
|
487
|
-
function encode(value) {
|
|
488
|
-
return btoa(String.fromCharCode(...new Uint8Array(value))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
489
|
-
}
|
|
490
793
|
/** Create under a Solid owner. Requests start on mount and abort on cleanup. */
|
|
491
794
|
function createSignInController(options) {
|
|
492
795
|
const search = new URLSearchParams(options.search);
|
|
@@ -507,6 +810,7 @@ function createSignInController(options) {
|
|
|
507
810
|
return value ? errors[value] : "";
|
|
508
811
|
};
|
|
509
812
|
const [busy, setBusy] = createSignal("");
|
|
813
|
+
const agreementAllowed = () => !options.requireAgreement || options.agreementAccepted === true;
|
|
510
814
|
const [showPassword, setShowPassword] = createSignal(false);
|
|
511
815
|
const [canPasskey, setCanPasskey] = createSignal(false);
|
|
512
816
|
const [conditionalReady, setConditionalReady] = createSignal(false);
|
|
@@ -542,7 +846,7 @@ function createSignInController(options) {
|
|
|
542
846
|
data.signup,
|
|
543
847
|
data.otp,
|
|
544
848
|
data.passkey
|
|
545
|
-
].some((value) => typeof value !== "boolean")) throw new Error();
|
|
849
|
+
].some((value) => typeof value !== "boolean") || [data.recovery, data.passkeyEnrollment].some((value) => value !== void 0 && typeof value !== "boolean")) throw new Error();
|
|
546
850
|
if (!attempt.signal.aborted) setConfig(data);
|
|
547
851
|
} catch {
|
|
548
852
|
if (!attempt.signal.aborted && !controller.signal.aborted) setConfigFailed(true);
|
|
@@ -577,24 +881,11 @@ function createSignInController(options) {
|
|
|
577
881
|
setStep(to);
|
|
578
882
|
}
|
|
579
883
|
async function post(path, body, signal = controller.signal) {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
signal: AbortSignal.any([
|
|
586
|
-
controller.signal,
|
|
587
|
-
signal,
|
|
588
|
-
AbortSignal.timeout(45e3)
|
|
589
|
-
]),
|
|
590
|
-
body: JSON.stringify({
|
|
591
|
-
...body,
|
|
592
|
-
acceptance: options.getAcceptance?.()
|
|
593
|
-
})
|
|
594
|
-
});
|
|
595
|
-
const data = await res.json();
|
|
596
|
-
if (!res.ok) throw new SignInError(isErrorCode(data.error) ? data.error : "unavailable");
|
|
597
|
-
return data;
|
|
884
|
+
if (!agreementAllowed()) throw new SignInError("acceptance_required");
|
|
885
|
+
return await postAuthJSON(path, {
|
|
886
|
+
...body,
|
|
887
|
+
acceptance: options.getAcceptance?.()
|
|
888
|
+
}, AbortSignal.any([controller.signal, signal]));
|
|
598
889
|
}
|
|
599
890
|
async function request(action, fields = {}) {
|
|
600
891
|
const data = await post(`${route}/email`, {
|
|
@@ -607,6 +898,10 @@ function createSignInController(options) {
|
|
|
607
898
|
}
|
|
608
899
|
async function run(label, op) {
|
|
609
900
|
if (busy() || controller.signal.aborted) return;
|
|
901
|
+
if (!agreementAllowed()) {
|
|
902
|
+
setErrorCode("acceptance_required");
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
610
905
|
attemptedConditional = true;
|
|
611
906
|
stopConditional();
|
|
612
907
|
setBusy(label);
|
|
@@ -625,9 +920,24 @@ function createSignInController(options) {
|
|
|
625
920
|
const { authorize } = await post(`${route}/start/${provider}`, { next });
|
|
626
921
|
const target = providerDestination(provider, authorize);
|
|
627
922
|
if (!target) throw new Error();
|
|
923
|
+
if (controller.signal.aborted) return;
|
|
924
|
+
if (!agreementAllowed()) throw new SignInError("acceptance_required");
|
|
925
|
+
await options.beforeOAuthNavigate?.(provider, target);
|
|
926
|
+
if (!agreementAllowed()) throw new SignInError("acceptance_required");
|
|
628
927
|
if (!controller.signal.aborted) window.location.assign(target);
|
|
629
928
|
});
|
|
630
929
|
}
|
|
930
|
+
function sendRecovery() {
|
|
931
|
+
if (!config()?.recovery || step() !== "recover") return;
|
|
932
|
+
return run("recovery", async () => {
|
|
933
|
+
if ((await post(`${route}/email`, {
|
|
934
|
+
action: "recovery_start",
|
|
935
|
+
email: email().trim(),
|
|
936
|
+
next
|
|
937
|
+
})).step !== "recovery_sent") throw new Error();
|
|
938
|
+
if (!controller.signal.aborted) go("recovery_sent");
|
|
939
|
+
});
|
|
940
|
+
}
|
|
631
941
|
function sendCode() {
|
|
632
942
|
if (!config()?.otp || step() === "otp" && wait() > 0) return;
|
|
633
943
|
return run("email", async () => {
|
|
@@ -661,17 +971,18 @@ function createSignInController(options) {
|
|
|
661
971
|
next
|
|
662
972
|
}, signal);
|
|
663
973
|
if (signal.aborted || !challenge || !challengeId || !rpId || !credentials) return;
|
|
974
|
+
if (!agreementAllowed()) throw new SignInError("acceptance_required");
|
|
664
975
|
if (autofill && credentials.length) return;
|
|
665
976
|
const assertion = await navigator.credentials.get({
|
|
666
977
|
signal,
|
|
667
978
|
...autofill && { mediation: "conditional" },
|
|
668
979
|
publicKey: {
|
|
669
|
-
challenge:
|
|
980
|
+
challenge: decodeBase64Url(challenge),
|
|
670
981
|
rpId,
|
|
671
982
|
...autofill ? {} : { timeout: 6e4 },
|
|
672
983
|
userVerification: "required",
|
|
673
984
|
allowCredentials: credentials.map((id) => ({
|
|
674
|
-
id:
|
|
985
|
+
id: decodeBase64Url(id),
|
|
675
986
|
type: "public-key"
|
|
676
987
|
}))
|
|
677
988
|
}
|
|
@@ -680,15 +991,15 @@ function createSignInController(options) {
|
|
|
680
991
|
const response = assertion.response;
|
|
681
992
|
return {
|
|
682
993
|
challenge_id: challengeId,
|
|
683
|
-
credential_id:
|
|
684
|
-
client_data_json:
|
|
685
|
-
authenticator_data:
|
|
686
|
-
signature:
|
|
687
|
-
user_handle: response.userHandle ?
|
|
994
|
+
credential_id: encodeBase64Url(assertion.rawId),
|
|
995
|
+
client_data_json: encodeBase64Url(response.clientDataJSON),
|
|
996
|
+
authenticator_data: encodeBase64Url(response.authenticatorData),
|
|
997
|
+
signature: encodeBase64Url(response.signature),
|
|
998
|
+
user_handle: response.userHandle ? encodeBase64Url(response.userHandle) : ""
|
|
688
999
|
};
|
|
689
1000
|
}
|
|
690
1001
|
function passkey() {
|
|
691
|
-
if (!canPasskey() || !config()?.passkey) return;
|
|
1002
|
+
if (!canPasskey() || !config()?.passkey || step() !== "choose" && !(step() === "confirm" && hasVerification)) return;
|
|
692
1003
|
return run("passkey", async () => {
|
|
693
1004
|
const fields = await getPasskey(controller.signal, false).catch((error) => {
|
|
694
1005
|
if (error instanceof DOMException && error.name === "NotAllowedError") return;
|
|
@@ -699,6 +1010,10 @@ function createSignInController(options) {
|
|
|
699
1010
|
});
|
|
700
1011
|
}
|
|
701
1012
|
createEffect(() => {
|
|
1013
|
+
if (!agreementAllowed()) {
|
|
1014
|
+
stopConditional();
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
702
1017
|
if (attemptedConditional || !conditionalReady() || step() !== "choose" || !config()?.passkey) return;
|
|
703
1018
|
if (options.getAcceptance && !options.getAcceptance()) return;
|
|
704
1019
|
attemptedConditional = true;
|
|
@@ -712,8 +1027,9 @@ function createSignInController(options) {
|
|
|
712
1027
|
if (conditional === attempt) conditional = void 0;
|
|
713
1028
|
});
|
|
714
1029
|
});
|
|
715
|
-
function continueWithEmail() {
|
|
716
|
-
if (config()?.otp) return sendCode();
|
|
1030
|
+
function continueWithEmail(method) {
|
|
1031
|
+
if (method !== "password" && config()?.otp) return sendCode();
|
|
1032
|
+
if (method === "otp") return void 0;
|
|
717
1033
|
if (config()?.password && !busy()) go("password");
|
|
718
1034
|
}
|
|
719
1035
|
function submitPassword(password) {
|
|
@@ -771,6 +1087,7 @@ function createSignInController(options) {
|
|
|
771
1087
|
setEmail,
|
|
772
1088
|
error,
|
|
773
1089
|
errorCode,
|
|
1090
|
+
agreementAllowed,
|
|
774
1091
|
busy,
|
|
775
1092
|
showPassword,
|
|
776
1093
|
setShowPassword,
|
|
@@ -783,6 +1100,7 @@ function createSignInController(options) {
|
|
|
783
1100
|
continueWithEmail,
|
|
784
1101
|
social,
|
|
785
1102
|
sendCode,
|
|
1103
|
+
sendRecovery,
|
|
786
1104
|
verifyCode,
|
|
787
1105
|
passkey,
|
|
788
1106
|
submitPassword,
|
|
@@ -791,28 +1109,41 @@ function createSignInController(options) {
|
|
|
791
1109
|
}
|
|
792
1110
|
// src/sign-in.tsx
|
|
793
1111
|
var _tmpl$ = [
|
|
1112
|
+
"<span",
|
|
1113
|
+
">",
|
|
1114
|
+
"</span>"
|
|
1115
|
+
];
|
|
1116
|
+
var _tmpl$2 = [
|
|
1117
|
+
"<button",
|
|
1118
|
+
" type=\"button\"",
|
|
1119
|
+
"",
|
|
1120
|
+
"><!--$-->",
|
|
1121
|
+
"<!--/--><!--$-->",
|
|
1122
|
+
"<!--/--></button>"
|
|
1123
|
+
];
|
|
1124
|
+
var _tmpl$3 = [
|
|
794
1125
|
"<p",
|
|
795
1126
|
">",
|
|
796
1127
|
"</p>"
|
|
797
1128
|
];
|
|
798
|
-
var _tmpl$
|
|
1129
|
+
var _tmpl$4 = [
|
|
799
1130
|
"<p",
|
|
800
1131
|
" role=\"alert\"",
|
|
801
1132
|
">",
|
|
802
1133
|
"</p>"
|
|
803
1134
|
];
|
|
804
|
-
var _tmpl$
|
|
1135
|
+
var _tmpl$5 = [
|
|
805
1136
|
"<label",
|
|
806
1137
|
">",
|
|
807
1138
|
"</label>"
|
|
808
1139
|
];
|
|
809
|
-
var _tmpl$
|
|
1140
|
+
var _tmpl$6 = [
|
|
810
1141
|
"<input",
|
|
811
1142
|
" type=\"email\" name=\"username\"",
|
|
812
1143
|
" required maxlength=\"254\"",
|
|
813
1144
|
">"
|
|
814
1145
|
];
|
|
815
|
-
var _tmpl$
|
|
1146
|
+
var _tmpl$7 = [
|
|
816
1147
|
"<form",
|
|
817
1148
|
" method=\"post\"",
|
|
818
1149
|
"><!--$-->",
|
|
@@ -830,20 +1161,32 @@ var _tmpl$5 = [
|
|
|
830
1161
|
">",
|
|
831
1162
|
"</button></form>"
|
|
832
1163
|
];
|
|
833
|
-
var _tmpl$
|
|
1164
|
+
var _tmpl$8 = [
|
|
834
1165
|
"<button",
|
|
835
1166
|
" type=\"button\"",
|
|
836
1167
|
"",
|
|
837
1168
|
">",
|
|
838
1169
|
"</button>"
|
|
839
1170
|
];
|
|
840
|
-
var _tmpl$
|
|
1171
|
+
var _tmpl$9 = [
|
|
1172
|
+
"<form",
|
|
1173
|
+
" method=\"post\"",
|
|
1174
|
+
"><label",
|
|
1175
|
+
">",
|
|
1176
|
+
"</label><input",
|
|
1177
|
+
" type=\"email\" autocomplete=\"email\" required maxlength=\"254\"",
|
|
1178
|
+
"><button type=\"submit\"",
|
|
1179
|
+
"",
|
|
1180
|
+
">",
|
|
1181
|
+
"</button></form>"
|
|
1182
|
+
];
|
|
1183
|
+
var _tmpl$0 = [
|
|
841
1184
|
"<button",
|
|
842
1185
|
" type=\"button\"",
|
|
843
1186
|
">",
|
|
844
1187
|
"</button>"
|
|
845
1188
|
];
|
|
846
|
-
var _tmpl$
|
|
1189
|
+
var _tmpl$1 = [
|
|
847
1190
|
"<form",
|
|
848
1191
|
" method=\"post\"",
|
|
849
1192
|
"><label",
|
|
@@ -859,7 +1202,7 @@ var _tmpl$8 = [
|
|
|
859
1202
|
">",
|
|
860
1203
|
"</button></form>"
|
|
861
1204
|
];
|
|
862
|
-
var _tmpl$
|
|
1205
|
+
var _tmpl$10 = [
|
|
863
1206
|
"<div",
|
|
864
1207
|
"><button type=\"button\"",
|
|
865
1208
|
"",
|
|
@@ -870,7 +1213,7 @@ var _tmpl$9 = [
|
|
|
870
1213
|
"</button><!--$-->",
|
|
871
1214
|
"<!--/--></div>"
|
|
872
1215
|
];
|
|
873
|
-
var _tmpl$
|
|
1216
|
+
var _tmpl$11 = [
|
|
874
1217
|
"<form",
|
|
875
1218
|
" method=\"post\"",
|
|
876
1219
|
"><label",
|
|
@@ -883,7 +1226,7 @@ var _tmpl$0 = [
|
|
|
883
1226
|
">",
|
|
884
1227
|
"</button></form>"
|
|
885
1228
|
];
|
|
886
|
-
var _tmpl$
|
|
1229
|
+
var _tmpl$12 = [
|
|
887
1230
|
"<div",
|
|
888
1231
|
"><button type=\"button\"",
|
|
889
1232
|
">",
|
|
@@ -891,7 +1234,7 @@ var _tmpl$1 = [
|
|
|
891
1234
|
">",
|
|
892
1235
|
"</button></div>"
|
|
893
1236
|
];
|
|
894
|
-
var _tmpl$
|
|
1237
|
+
var _tmpl$13 = [
|
|
895
1238
|
"<div",
|
|
896
1239
|
"><label",
|
|
897
1240
|
">",
|
|
@@ -899,7 +1242,12 @@ var _tmpl$10 = [
|
|
|
899
1242
|
">",
|
|
900
1243
|
"</select></div>"
|
|
901
1244
|
];
|
|
902
|
-
var _tmpl$
|
|
1245
|
+
var _tmpl$14 = [
|
|
1246
|
+
"<div",
|
|
1247
|
+
">",
|
|
1248
|
+
"</div>"
|
|
1249
|
+
];
|
|
1250
|
+
var _tmpl$15 = [
|
|
903
1251
|
"<section",
|
|
904
1252
|
" style=\"",
|
|
905
1253
|
"\"",
|
|
@@ -915,17 +1263,12 @@ var _tmpl$11 = [
|
|
|
915
1263
|
"<!--/--><!--$-->",
|
|
916
1264
|
"<!--/--></div></section>"
|
|
917
1265
|
];
|
|
918
|
-
var _tmpl$
|
|
1266
|
+
var _tmpl$16 = [
|
|
919
1267
|
"<output",
|
|
920
1268
|
">",
|
|
921
1269
|
"</output>"
|
|
922
1270
|
];
|
|
923
|
-
var _tmpl$
|
|
924
|
-
"<div",
|
|
925
|
-
">",
|
|
926
|
-
"</div>"
|
|
927
|
-
];
|
|
928
|
-
var _tmpl$14 = [
|
|
1271
|
+
var _tmpl$17 = [
|
|
929
1272
|
"<form",
|
|
930
1273
|
" method=\"post\"",
|
|
931
1274
|
"><label",
|
|
@@ -935,10 +1278,11 @@ var _tmpl$14 = [
|
|
|
935
1278
|
" required maxlength=\"254\"",
|
|
936
1279
|
"><button type=\"submit\"",
|
|
937
1280
|
"",
|
|
938
|
-
"
|
|
939
|
-
"
|
|
1281
|
+
"><!--$-->",
|
|
1282
|
+
"<!--/--><!--$-->",
|
|
1283
|
+
"<!--/--></button></form>"
|
|
940
1284
|
];
|
|
941
|
-
var _tmpl$
|
|
1285
|
+
var _tmpl$18 = [
|
|
942
1286
|
"<p",
|
|
943
1287
|
"><!--$-->",
|
|
944
1288
|
"<!--/--> <button type=\"button\"",
|
|
@@ -946,25 +1290,21 @@ var _tmpl$15 = [
|
|
|
946
1290
|
">",
|
|
947
1291
|
"</button></p>"
|
|
948
1292
|
];
|
|
949
|
-
var _tmpl$
|
|
1293
|
+
var _tmpl$19 = [
|
|
950
1294
|
"<button",
|
|
951
1295
|
" type=\"button\"",
|
|
952
1296
|
"",
|
|
953
1297
|
"><!--$-->",
|
|
954
1298
|
"<!--/--><!--$-->",
|
|
1299
|
+
"<!--/--><!--$-->",
|
|
955
1300
|
"<!--/--></button>"
|
|
956
1301
|
];
|
|
957
|
-
var _tmpl$
|
|
1302
|
+
var _tmpl$20 = [
|
|
958
1303
|
"<input",
|
|
959
1304
|
" tabindex=\"-1\" hidden name=\"username\"",
|
|
960
1305
|
" readonly>"
|
|
961
1306
|
];
|
|
962
|
-
var _tmpl$
|
|
963
|
-
"<span",
|
|
964
|
-
">",
|
|
965
|
-
"</span>"
|
|
966
|
-
];
|
|
967
|
-
var _tmpl$19 = [
|
|
1307
|
+
var _tmpl$21 = [
|
|
968
1308
|
"<option",
|
|
969
1309
|
"",
|
|
970
1310
|
">",
|
|
@@ -979,12 +1319,14 @@ var icons = {
|
|
|
979
1319
|
microsoft: MicrosoftIcon
|
|
980
1320
|
};
|
|
981
1321
|
function SylphxSignIn(props) {
|
|
982
|
-
const { emailRoute, config, configFailed, loadConfig, step, email, setEmail, errorCode, busy, showPassword, setShowPassword, canPasskey, code, setCode, recovery, setRecovery, wait, continueWithEmail, social, sendCode, verifyCode, passkey, submitPassword, submitMfa } = createSignInController(props);
|
|
1322
|
+
const { emailRoute, config, configFailed, loadConfig, step, email, setEmail, errorCode, busy, agreementAllowed, showPassword, setShowPassword, canPasskey, code, setCode, recovery, setRecovery, wait, continueWithEmail, social, sendCode, sendRecovery, verifyCode, passkey, submitPassword, submitMfa } = createSignInController(props);
|
|
983
1323
|
const [detected, setDetected] = createSignal();
|
|
984
1324
|
const [selected, setSelected] = createSignal();
|
|
985
1325
|
const locale = createMemo(() => props.locale === void 0 ? selected() ?? detected() ?? resolveAuthLocale(props.localePreferences ?? []) : resolveAuthLocale([props.locale, ...props.localePreferences ?? []]));
|
|
986
|
-
const text = () =>
|
|
987
|
-
const
|
|
1326
|
+
const text = createMemo(() => resolveSignInMessages(locale(), props.messages));
|
|
1327
|
+
const language = () => signInLanguage(locale(), props.locale, props.messages);
|
|
1328
|
+
const seconds = createMemo(() => authSecondsFormat(language()));
|
|
1329
|
+
const disabled = () => !!busy() || !agreementAllowed();
|
|
988
1330
|
const error = () => {
|
|
989
1331
|
const code = errorCode();
|
|
990
1332
|
return code ? text().errors[code] : "";
|
|
@@ -999,12 +1341,29 @@ function SylphxSignIn(props) {
|
|
|
999
1341
|
if (props.appearance?.unstyled) return custom;
|
|
1000
1342
|
return custom ? `auth-sign-in-${part} ${custom}` : `auth-sign-in-${part}`;
|
|
1001
1343
|
}
|
|
1002
|
-
|
|
1344
|
+
const [showPasswordEmail, setShowPasswordEmail] = createSignal(false);
|
|
1345
|
+
const lastUsed = (method) => createComponent(Show, {
|
|
1346
|
+
get when() {
|
|
1347
|
+
return props.lastUsed === method;
|
|
1348
|
+
},
|
|
1349
|
+
get children() {
|
|
1350
|
+
return ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("class", escape(className("last-used"), true), false), escape(text().lastUsed));
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
const passkeyAction = () => createComponent(Show, {
|
|
1354
|
+
get when() {
|
|
1355
|
+
return memo(() => !!config()?.passkey)() && canPasskey();
|
|
1356
|
+
},
|
|
1357
|
+
get children() {
|
|
1358
|
+
return ssr(_tmpl$2, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", disabled(), true), busy() === "passkey" ? escape(text().waitingPasskey) : escape(text().usePasskey), escape(lastUsed("passkey")));
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
return ssr(_tmpl$15, ssrHydrationKey() + ssrAttribute("class", escape(className("panel"), true), false), ssrStyle(props.appearance?.tokens), ssrAttribute("aria-labelledby", escape(id("title"), true), false) + ssrAttribute("lang", escape(language(), true), false), ssrAttribute("class", escape(className("content"), true), false), escape(createComponent(Show, {
|
|
1003
1362
|
get when() {
|
|
1004
1363
|
return props.kicker;
|
|
1005
1364
|
},
|
|
1006
1365
|
get children() {
|
|
1007
|
-
return ssr(_tmpl
|
|
1366
|
+
return ssr(_tmpl$3, ssrHydrationKey() + ssrAttribute("class", escape(className("kicker"), true), false), escape(props.kicker));
|
|
1008
1367
|
}
|
|
1009
1368
|
})), ssrAttribute("id", escape(id("title"), true), false) + ssrAttribute("class", escape(className("title"), true), false), escape({
|
|
1010
1369
|
choose: props.title ?? text().signIn,
|
|
@@ -1013,7 +1372,9 @@ function SylphxSignIn(props) {
|
|
|
1013
1372
|
check_email: text().checkInbox,
|
|
1014
1373
|
confirm: text().confirmEmail,
|
|
1015
1374
|
otp: text().checkInbox,
|
|
1016
|
-
mfa: text().verifyIdentity
|
|
1375
|
+
mfa: text().verifyIdentity,
|
|
1376
|
+
recover: text().recoverAccount,
|
|
1377
|
+
recovery_sent: text().recoverySent
|
|
1017
1378
|
}[step()]), ssrAttribute("class", escape(className("sub"), true), false), escape({
|
|
1018
1379
|
choose: props.description ?? text().chooseMethod,
|
|
1019
1380
|
password: email(),
|
|
@@ -1021,13 +1382,15 @@ function SylphxSignIn(props) {
|
|
|
1021
1382
|
check_email: text().checkEmailDescription,
|
|
1022
1383
|
confirm: text().confirmEmailDescription,
|
|
1023
1384
|
otp: text().enterEmailCode(email()),
|
|
1024
|
-
mfa: recovery() ? text().enterRecovery : text().enterAuthenticator
|
|
1385
|
+
mfa: recovery() ? text().enterRecovery : text().enterAuthenticator,
|
|
1386
|
+
recover: text().recoverDescription,
|
|
1387
|
+
recovery_sent: text().recoverySentDescription
|
|
1025
1388
|
}[step()]), escape(createComponent(Show, {
|
|
1026
1389
|
get when() {
|
|
1027
1390
|
return error();
|
|
1028
1391
|
},
|
|
1029
1392
|
get children() {
|
|
1030
|
-
return ssr(_tmpl$
|
|
1393
|
+
return ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("class", escape(className("error"), true), false), escape(error()));
|
|
1031
1394
|
}
|
|
1032
1395
|
})), escape(createComponent(Switch, { get children() {
|
|
1033
1396
|
return [
|
|
@@ -1046,21 +1409,21 @@ function SylphxSignIn(props) {
|
|
|
1046
1409
|
return configFailed();
|
|
1047
1410
|
},
|
|
1048
1411
|
get fallback() {
|
|
1049
|
-
return ssr(_tmpl$
|
|
1412
|
+
return ssr(_tmpl$16, ssrHydrationKey() + ssrAttribute("class", escape(className("loading"), true), false), escape(text().loading));
|
|
1050
1413
|
},
|
|
1051
1414
|
get children() {
|
|
1052
|
-
return [ssr(_tmpl$
|
|
1415
|
+
return [ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("class", escape(className("error"), true), false), escape(text().errors.unavailable)), ssr(_tmpl$0, ssrHydrationKey(), ssrAttribute("class", escape(className("secondary"), true), false), escape(text().retry))];
|
|
1053
1416
|
}
|
|
1054
1417
|
});
|
|
1055
1418
|
},
|
|
1056
1419
|
children: (methods) => [
|
|
1057
|
-
ssr(_tmpl$
|
|
1420
|
+
ssr(_tmpl$14, ssrHydrationKey() + ssrAttribute("class", escape(className("providers"), true), false), escape(createComponent(For, {
|
|
1058
1421
|
get each() {
|
|
1059
1422
|
return methods().providers;
|
|
1060
1423
|
},
|
|
1061
1424
|
children: (provider) => {
|
|
1062
1425
|
const Icon = icons[provider];
|
|
1063
|
-
return ssr(_tmpl$
|
|
1426
|
+
return ssr(_tmpl$19, ssrHydrationKey(), ssrAttribute("class", escape(className("secondary"), true), false), ssrAttribute("disabled", disabled(), true), Icon && escape(createComponent(Icon, {})), busy() === providers[provider][0] ? escape(text().openingProvider(providers[provider][0])) : escape(text().continueProvider(providers[provider][0])), escape(lastUsed(provider)));
|
|
1064
1427
|
}
|
|
1065
1428
|
}))),
|
|
1066
1429
|
createComponent(Show, {
|
|
@@ -1073,25 +1436,26 @@ function SylphxSignIn(props) {
|
|
|
1073
1436
|
return methods().providers.length;
|
|
1074
1437
|
},
|
|
1075
1438
|
get children() {
|
|
1076
|
-
return ssr(_tmpl$
|
|
1439
|
+
return ssr(_tmpl$14, ssrHydrationKey() + ssrAttribute("class", escape(className("divider"), true), false), escape(text().orEmail));
|
|
1077
1440
|
}
|
|
1078
|
-
}), ssr(_tmpl$
|
|
1441
|
+
}), ssr(_tmpl$17, ssrHydrationKey(), ssrAttribute("action", escape(emailRoute, true), false) + ssrAttribute("class", escape(className("form"), true), false), ssrAttribute("for", escape(id("email"), true), false), escape(text().email), ssrAttribute("id", escape(id("email"), true), false), ssrAttribute("autocomplete", config()?.passkey ? "username webauthn" : "username", false), ssrAttribute("value", escape(email(), true), false), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled", disabled(), true), busy() === "email" ? escape(text().sendingCode) : methods().otp ? escape(text().emailCodeAction) : escape(text().continueEmail), escape(lastUsed(methods().otp ? "otp" : "password")))];
|
|
1079
1442
|
}
|
|
1080
1443
|
}),
|
|
1081
1444
|
createComponent(Show, {
|
|
1082
1445
|
get when() {
|
|
1083
|
-
return memo(() => !!methods().
|
|
1446
|
+
return memo(() => !!methods().otp)() && methods().password;
|
|
1084
1447
|
},
|
|
1085
1448
|
get children() {
|
|
1086
|
-
return ssr(_tmpl$
|
|
1449
|
+
return ssr(_tmpl$2, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().usePassword), escape(lastUsed("password")));
|
|
1087
1450
|
}
|
|
1088
1451
|
}),
|
|
1452
|
+
passkeyAction(),
|
|
1089
1453
|
createComponent(Show, {
|
|
1090
1454
|
get when() {
|
|
1091
1455
|
return methods().signup;
|
|
1092
1456
|
},
|
|
1093
1457
|
get children() {
|
|
1094
|
-
return ssr(_tmpl$
|
|
1458
|
+
return ssr(_tmpl$18, ssrHydrationKey() + ssrAttribute("class", escape(className("switch"), true), false), escape(text().newHere), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().createAnAccount));
|
|
1095
1459
|
}
|
|
1096
1460
|
}),
|
|
1097
1461
|
createComponent(Show, {
|
|
@@ -1099,7 +1463,7 @@ function SylphxSignIn(props) {
|
|
|
1099
1463
|
return memo(() => !!(!methods().password && !methods().signup && !methods().otp && !methods().providers.length))() && !(methods().passkey && canPasskey());
|
|
1100
1464
|
},
|
|
1101
1465
|
get children() {
|
|
1102
|
-
return ssr(_tmpl$
|
|
1466
|
+
return ssr(_tmpl$16, ssrHydrationKey(), escape(text().noMethods));
|
|
1103
1467
|
}
|
|
1104
1468
|
})
|
|
1105
1469
|
]
|
|
@@ -1111,24 +1475,59 @@ function SylphxSignIn(props) {
|
|
|
1111
1475
|
return step() === "password" || step() === "signup" || step() === "confirm";
|
|
1112
1476
|
},
|
|
1113
1477
|
get children() {
|
|
1114
|
-
return [
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1478
|
+
return [
|
|
1479
|
+
ssr(_tmpl$7, ssrHydrationKey(), ssrAttribute("action", escape(emailRoute, true), false) + ssrAttribute("class", escape(className("form"), true), false), escape(createComponent(Show, {
|
|
1480
|
+
get when() {
|
|
1481
|
+
return step() !== "password" || showPasswordEmail();
|
|
1482
|
+
},
|
|
1483
|
+
get fallback() {
|
|
1484
|
+
return ssr(_tmpl$20, ssrHydrationKey(), ssrAttribute("value", escape(email(), true), false) + ssrAttribute("autocomplete", config()?.passkey ? "username webauthn" : "username", false));
|
|
1485
|
+
},
|
|
1486
|
+
get children() {
|
|
1487
|
+
return [ssr(_tmpl$5, ssrHydrationKey() + ssrAttribute("for", escape(id("account-email"), true), false), escape(text().email)), ssr(_tmpl$6, ssrHydrationKey() + ssrAttribute("id", escape(id("account-email"), true), false), ssrAttribute("autocomplete", config()?.passkey ? "username webauthn" : "username", false), ssrAttribute("value", escape(email(), true), false))];
|
|
1488
|
+
}
|
|
1489
|
+
})), ssrAttribute("for", escape(id("password"), true), false), escape(text().password), ssrAttribute("class", escape(className("password"), true), false), ssrAttribute("id", escape(id("password"), true), false) + ssrAttribute("type", showPassword() ? "text" : "password", false) + ssrAttribute("autocomplete", step() === "signup" ? "new-password" : "current-password", false), ssrAttribute("minlength", step() === "signup" ? 12 : escape(void 0, true), false), ssrAttribute("aria-describedby", step() === "signup" ? escape(id("password-hint"), true) : escape(void 0, true), false), ssrAttribute("class", escape(className("link"), true), false) + ssrAttribute("aria-label", showPassword() ? escape(text().hidePassword, true) : escape(text().showPassword, true), false), showPassword() ? escape(text().hide) : escape(text().show), escape(createComponent(Show, {
|
|
1490
|
+
get when() {
|
|
1491
|
+
return step() === "signup";
|
|
1492
|
+
},
|
|
1493
|
+
get children() {
|
|
1494
|
+
return ssr(_tmpl$3, ssrHydrationKey() + ssrAttribute("class", escape(className("hint"), true), false) + ssrAttribute("id", escape(id("password-hint"), true), false), escape(text().minimumPassword));
|
|
1495
|
+
}
|
|
1496
|
+
})), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled", disabled(), true), busy() ? escape(text().working) : step() === "signup" ? escape(text().createAccount) : step() === "confirm" ? escape(text().confirmAndSignIn) : escape(text().signIn)),
|
|
1497
|
+
createComponent(Show, {
|
|
1498
|
+
get when() {
|
|
1499
|
+
return memo(() => step() === "password")() && config()?.recovery;
|
|
1500
|
+
},
|
|
1501
|
+
get children() {
|
|
1502
|
+
return ssr(_tmpl$8, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().forgotPassword));
|
|
1503
|
+
}
|
|
1504
|
+
}),
|
|
1505
|
+
createComponent(Show, {
|
|
1506
|
+
get when() {
|
|
1507
|
+
return step() === "confirm";
|
|
1508
|
+
},
|
|
1509
|
+
get children() {
|
|
1510
|
+
return passkeyAction();
|
|
1511
|
+
}
|
|
1512
|
+
}),
|
|
1513
|
+
ssr(_tmpl$8, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), step() === "password" ? escape(text().changeEmailOrMethod) : escape(text().backToSignIn))
|
|
1514
|
+
];
|
|
1515
|
+
}
|
|
1516
|
+
}),
|
|
1517
|
+
createComponent(Match, {
|
|
1518
|
+
get when() {
|
|
1519
|
+
return step() === "recover";
|
|
1520
|
+
},
|
|
1521
|
+
get children() {
|
|
1522
|
+
return [ssr(_tmpl$9, ssrHydrationKey(), ssrAttribute("action", escape(emailRoute, true), false) + ssrAttribute("class", escape(className("form"), true), false), ssrAttribute("for", escape(id("recovery-email"), true), false), escape(text().email), ssrAttribute("id", escape(id("recovery-email"), true), false), ssrAttribute("value", escape(email(), true), false), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled", disabled(), true), busy() ? escape(text().working) : escape(text().sendResetLink)), ssr(_tmpl$8, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().backToSignIn))];
|
|
1523
|
+
}
|
|
1524
|
+
}),
|
|
1525
|
+
createComponent(Match, {
|
|
1526
|
+
get when() {
|
|
1527
|
+
return step() === "recovery_sent";
|
|
1528
|
+
},
|
|
1529
|
+
get children() {
|
|
1530
|
+
return ssr(_tmpl$0, ssrHydrationKey(), ssrAttribute("class", escape(className("secondary"), true), false), escape(text().backToSignIn));
|
|
1132
1531
|
}
|
|
1133
1532
|
}),
|
|
1134
1533
|
createComponent(Match, {
|
|
@@ -1136,7 +1535,7 @@ function SylphxSignIn(props) {
|
|
|
1136
1535
|
return step() === "check_email";
|
|
1137
1536
|
},
|
|
1138
1537
|
get children() {
|
|
1139
|
-
return ssr(_tmpl$
|
|
1538
|
+
return ssr(_tmpl$0, ssrHydrationKey(), ssrAttribute("class", escape(className("secondary"), true), false), escape(text().backToSignIn));
|
|
1140
1539
|
}
|
|
1141
1540
|
}),
|
|
1142
1541
|
createComponent(Match, {
|
|
@@ -1144,7 +1543,7 @@ function SylphxSignIn(props) {
|
|
|
1144
1543
|
return step() === "otp";
|
|
1145
1544
|
},
|
|
1146
1545
|
get children() {
|
|
1147
|
-
return [ssr(_tmpl$
|
|
1546
|
+
return [ssr(_tmpl$1, ssrHydrationKey(), ssrAttribute("action", escape(emailRoute, true), false) + ssrAttribute("class", escape(className("form"), true), false), ssrAttribute("for", escape(id("code"), true), false), escape(text().emailCode), ssrAttribute("class", escape(className("otp"), true), false), ssrAttribute("id", escape(id("code"), true), false), ssrAttribute("value", escape(code(), true), false), ssrAttribute("readonly", !!busy(), true), ssrAttribute("class", escape(className("cells"), true), false), escape(createComponent(For, {
|
|
1148
1547
|
each: [
|
|
1149
1548
|
0,
|
|
1150
1549
|
1,
|
|
@@ -1153,13 +1552,13 @@ function SylphxSignIn(props) {
|
|
|
1153
1552
|
4,
|
|
1154
1553
|
5
|
|
1155
1554
|
],
|
|
1156
|
-
children: (i) => ssr(_tmpl
|
|
1157
|
-
})), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled",
|
|
1555
|
+
children: (i) => ssr(_tmpl$, ssrHydrationKey(), escape(code()[i] ?? ""))
|
|
1556
|
+
})), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled", disabled() || code().length !== 6, true), busy() === "verify" ? escape(text().checkingCode) : escape(text().verifyCode)), ssr(_tmpl$10, ssrHydrationKey() + ssrAttribute("class", escape(className("actions"), true), false), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", disabled() || wait() > 0, true), wait() ? escape(text().resendIn(seconds().format(wait()))) : escape(text().resendCode), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().changeEmail), escape(createComponent(Show, {
|
|
1158
1557
|
get when() {
|
|
1159
1558
|
return config()?.password;
|
|
1160
1559
|
},
|
|
1161
1560
|
get children() {
|
|
1162
|
-
return ssr(_tmpl$
|
|
1561
|
+
return ssr(_tmpl$8, ssrHydrationKey(), ssrAttribute("class", escape(className("link"), true), false), ssrAttribute("disabled", !!busy(), true), escape(text().usePassword));
|
|
1163
1562
|
}
|
|
1164
1563
|
})))];
|
|
1165
1564
|
}
|
|
@@ -1169,7 +1568,7 @@ function SylphxSignIn(props) {
|
|
|
1169
1568
|
return step() === "mfa";
|
|
1170
1569
|
},
|
|
1171
1570
|
get children() {
|
|
1172
|
-
return [ssr(_tmpl$
|
|
1571
|
+
return [ssr(_tmpl$11, ssrHydrationKey(), ssrAttribute("action", escape(emailRoute, true), false) + ssrAttribute("class", escape(className("form"), true), false), ssrAttribute("for", escape(id("mfa"), true), false), recovery() ? escape(text().recoveryCode) : escape(text().authenticatorCode), ssrAttribute("id", escape(id("mfa"), true), false), ssrAttribute("inputmode", recovery() ? "text" : "numeric", false), ssrAttribute("maxlength", recovery() ? 128 : 6, false), ssrAttribute("class", escape(className("primary"), true), false), ssrAttribute("disabled", disabled(), true), busy() ? escape(text().checkingCode) : escape(text().verifyAndSignIn)), ssr(_tmpl$12, ssrHydrationKey() + ssrAttribute("class", escape(className("actions"), true), false), ssrAttribute("disabled", !!busy(), true) + ssrAttribute("class", escape(className("link"), true), false), recovery() ? escape(text().useAuthenticator) : escape(text().useRecovery), ssrAttribute("disabled", !!busy(), true) + ssrAttribute("class", escape(className("link"), true), false), escape(text().backToSignIn))];
|
|
1173
1572
|
}
|
|
1174
1573
|
})
|
|
1175
1574
|
];
|
|
@@ -1178,9 +1577,9 @@ function SylphxSignIn(props) {
|
|
|
1178
1577
|
return memo(() => props.showLocaleSelector !== false)() && (props.locale === void 0 || props.onLocaleChange);
|
|
1179
1578
|
},
|
|
1180
1579
|
get children() {
|
|
1181
|
-
return ssr(_tmpl$
|
|
1580
|
+
return ssr(_tmpl$13, ssrHydrationKey() + ssrAttribute("class", escape(className("locale"), true), false), ssrAttribute("for", escape(id("locale"), true), false), escape(text().language), ssrAttribute("id", escape(id("locale"), true), false) + ssrAttribute("value", escape(locale(), true), false), escape(createComponent(For, {
|
|
1182
1581
|
each: locales,
|
|
1183
|
-
children: (item) => ssr(_tmpl$
|
|
1582
|
+
children: (item) => ssr(_tmpl$21, ssrHydrationKey() + ssrAttribute("value", escape(item, true), false) + ssrAttribute("lang", escape(item, true), false), ssrAttribute("selected", locale() === item, true), escape(localeNames[item]))
|
|
1184
1583
|
})));
|
|
1185
1584
|
}
|
|
1186
1585
|
})), escape(createComponent(Show, {
|
|
@@ -1188,8 +1587,8 @@ function SylphxSignIn(props) {
|
|
|
1188
1587
|
return props.agreement;
|
|
1189
1588
|
},
|
|
1190
1589
|
get children() {
|
|
1191
|
-
return ssr(_tmpl
|
|
1590
|
+
return ssr(_tmpl$14, ssrHydrationKey() + ssrAttribute("class", escape(className("agreement"), true), false), escape(props.agreement));
|
|
1192
1591
|
}
|
|
1193
1592
|
})));
|
|
1194
1593
|
}
|
|
1195
|
-
export { SylphxSignIn, createSignInController, localeNames, resolveAuthLocale, catalogs as signInMessages };
|
|
1594
|
+
export { SylphxPasskeyEnroll, SylphxSignIn, createSignInController, localeNames, resolveAuthLocale, resolveSignInMessages, catalogs as signInMessages };
|