cauthy-auth 0.37.0 → 0.38.0
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 +1 -1
- package/dist/client.d.mts +2 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js.map +1 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +4 -2
- package/dist/react.d.ts +4 -2
- package/dist/react.js +6 -3
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +6 -3
- package/dist/react.mjs.map +1 -1
- package/dist/styles.css +10 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.mjs
CHANGED
|
@@ -796,8 +796,9 @@ var TEXTS = {
|
|
|
796
796
|
secondStepOff: "Off: signing in asks only for your password.",
|
|
797
797
|
turnOn: "Turn on",
|
|
798
798
|
turnOff: "Turn off",
|
|
799
|
-
addToApp: "
|
|
799
|
+
addToApp: "Scan this code with your authenticator app, or add the key below by hand, then enter the code it shows.",
|
|
800
800
|
openInApp: "Open in an authenticator app",
|
|
801
|
+
qrAlt: "QR code to add this account to an authenticator app",
|
|
801
802
|
recoveryCodes: "Recovery codes",
|
|
802
803
|
newRecoveryCodes: "New recovery codes",
|
|
803
804
|
keepCodes: "Keep these codes somewhere safe. Each works once, and they are not shown again.",
|
|
@@ -987,8 +988,9 @@ var TEXTS = {
|
|
|
987
988
|
secondStepOff: "Inactivo: al entrar solo se pide tu contrase\xF1a.",
|
|
988
989
|
turnOn: "Activar",
|
|
989
990
|
turnOff: "Desactivar",
|
|
990
|
-
addToApp: "
|
|
991
|
+
addToApp: "Escanea este c\xF3digo con tu aplicaci\xF3n de autenticaci\xF3n, o agrega a mano la clave de abajo, y escribe el c\xF3digo que muestra.",
|
|
991
992
|
openInApp: "Abrir en una aplicaci\xF3n de autenticaci\xF3n",
|
|
993
|
+
qrAlt: "C\xF3digo QR para agregar esta cuenta a una aplicaci\xF3n de autenticaci\xF3n",
|
|
992
994
|
recoveryCodes: "C\xF3digos de recuperaci\xF3n",
|
|
993
995
|
newRecoveryCodes: "Nuevos c\xF3digos de recuperaci\xF3n",
|
|
994
996
|
keepCodes: "Guarda estos c\xF3digos en un lugar seguro. Cada uno sirve una vez y no se vuelven a mostrar.",
|
|
@@ -2699,7 +2701,7 @@ function SecondStepPart({ props, account, onChanged }) {
|
|
|
2699
2701
|
const start = async (e) => {
|
|
2700
2702
|
e.preventDefault();
|
|
2701
2703
|
const r = await run(() => auth.account.mfa.setup({ password }));
|
|
2702
|
-
if (r.ok) setSetup({ secret: r.secret, otpauthUri: r.otpauthUri });
|
|
2704
|
+
if (r.ok) setSetup({ secret: r.secret, otpauthUri: r.otpauthUri, qr: r.qr ?? "" });
|
|
2703
2705
|
};
|
|
2704
2706
|
const confirm = async (e) => {
|
|
2705
2707
|
e.preventDefault();
|
|
@@ -2746,6 +2748,7 @@ function SecondStepPart({ props, account, onChanged }) {
|
|
|
2746
2748
|
return /* @__PURE__ */ jsxs(Wrap, { f, as: "form", slot: "section", section: "secondStep", onSubmit: confirm, noValidate: true, children: [
|
|
2747
2749
|
/* @__PURE__ */ jsx(Heading, { f, children: f.t.secondStep }),
|
|
2748
2750
|
/* @__PURE__ */ jsx(Note, { f, children: f.t.addToApp }),
|
|
2751
|
+
setup.qr && /* @__PURE__ */ jsx("img", { className: f.cx("qr"), src: setup.qr, width: 220, height: 220, alt: f.t.qrAlt }),
|
|
2749
2752
|
/* @__PURE__ */ jsx("code", { className: f.cx("secret"), children: setup.secret }),
|
|
2750
2753
|
/* @__PURE__ */ jsx(A, { f, href: setup.otpauthUri, children: f.t.openInApp }),
|
|
2751
2754
|
general && /* @__PURE__ */ jsx(Say, { f, tone: "danger", children: f.say(general) }),
|