cauthy-auth 0.36.1 → 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 +6 -2
- 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 +16 -2
- package/dist/react.d.ts +16 -2
- package/dist/react.js +283 -48
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +283 -48
- 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.d.mts
CHANGED
|
@@ -732,12 +732,13 @@ interface AccountClient {
|
|
|
732
732
|
kinds?: string[];
|
|
733
733
|
}): Promise<AuthResult<'accepted'>>;
|
|
734
734
|
mfa: {
|
|
735
|
-
/** Starts turning the second step on: show `
|
|
735
|
+
/** Starts turning the second step on: show `qr` (the `otpauthUri` drawn by Cauthy, a PNG `data:` URI; empty from an older Cauthy) and `secret` to add to an authenticator app, then call `verify`. */
|
|
736
736
|
setup(form: {
|
|
737
737
|
password: string;
|
|
738
738
|
}): Promise<AuthResult<'started', {
|
|
739
739
|
secret: string;
|
|
740
740
|
otpauthUri: string;
|
|
741
|
+
qr: string;
|
|
741
742
|
}>>;
|
|
742
743
|
/** Turns it on with a code from the app. `recoveryCodes` are shown this once. */
|
|
743
744
|
verify(form: {
|
|
@@ -1222,9 +1223,22 @@ interface AuthTexts {
|
|
|
1222
1223
|
turnOff: string;
|
|
1223
1224
|
addToApp: string;
|
|
1224
1225
|
openInApp: string;
|
|
1226
|
+
qrAlt: string;
|
|
1225
1227
|
recoveryCodes: string;
|
|
1226
1228
|
newRecoveryCodes: string;
|
|
1227
1229
|
keepCodes: string;
|
|
1230
|
+
/** Beside recovery codes just made: copy them all, or save them as a text file. */
|
|
1231
|
+
copyCodes: string;
|
|
1232
|
+
downloadCodes: string;
|
|
1233
|
+
codesCopied: string;
|
|
1234
|
+
/** Said when the browser would not copy: the codes stay on screen to select. */
|
|
1235
|
+
codesNotCopied: string;
|
|
1236
|
+
/** The action that opens the form of a part already set (the name). */
|
|
1237
|
+
change: string;
|
|
1238
|
+
/** The password part, when the account has one. */
|
|
1239
|
+
passwordSet: string;
|
|
1240
|
+
/** Opens the form that adds another passkey, once the account has one. */
|
|
1241
|
+
addAnotherPasskey: string;
|
|
1228
1242
|
passkeys: string;
|
|
1229
1243
|
managePasskeys: string;
|
|
1230
1244
|
passkeysHelp: string;
|
|
@@ -1287,7 +1301,7 @@ interface AuthTexts {
|
|
|
1287
1301
|
/** By error code; one missing shows what the server said. */
|
|
1288
1302
|
errors: Record<string, string>;
|
|
1289
1303
|
}
|
|
1290
|
-
type Slot = 'form' | 'field' | 'label' | 'input' | 'button' | 'providerButton' | 'providerIcon' | 'link' | 'error' | 'fieldError' | 'hint' | 'notice' | 'pending' | 'separator' | 'footer' | 'check' | 'account' | 'section' | 'heading' | 'secret' | 'codes' | 'sessions' | 'session';
|
|
1304
|
+
type Slot = 'form' | 'field' | 'label' | 'input' | 'button' | 'providerButton' | 'providerIcon' | 'link' | 'error' | 'fieldError' | 'hint' | 'notice' | 'pending' | 'separator' | 'footer' | 'check' | 'account' | 'section' | 'heading' | 'secret' | 'qr' | 'codes' | 'sessions' | 'session';
|
|
1291
1305
|
interface AuthFormProps {
|
|
1292
1306
|
/** The language of the built-in sentences. Default: `en`. */
|
|
1293
1307
|
locale?: 'en' | 'es';
|
package/dist/react.d.ts
CHANGED
|
@@ -732,12 +732,13 @@ interface AccountClient {
|
|
|
732
732
|
kinds?: string[];
|
|
733
733
|
}): Promise<AuthResult<'accepted'>>;
|
|
734
734
|
mfa: {
|
|
735
|
-
/** Starts turning the second step on: show `
|
|
735
|
+
/** Starts turning the second step on: show `qr` (the `otpauthUri` drawn by Cauthy, a PNG `data:` URI; empty from an older Cauthy) and `secret` to add to an authenticator app, then call `verify`. */
|
|
736
736
|
setup(form: {
|
|
737
737
|
password: string;
|
|
738
738
|
}): Promise<AuthResult<'started', {
|
|
739
739
|
secret: string;
|
|
740
740
|
otpauthUri: string;
|
|
741
|
+
qr: string;
|
|
741
742
|
}>>;
|
|
742
743
|
/** Turns it on with a code from the app. `recoveryCodes` are shown this once. */
|
|
743
744
|
verify(form: {
|
|
@@ -1222,9 +1223,22 @@ interface AuthTexts {
|
|
|
1222
1223
|
turnOff: string;
|
|
1223
1224
|
addToApp: string;
|
|
1224
1225
|
openInApp: string;
|
|
1226
|
+
qrAlt: string;
|
|
1225
1227
|
recoveryCodes: string;
|
|
1226
1228
|
newRecoveryCodes: string;
|
|
1227
1229
|
keepCodes: string;
|
|
1230
|
+
/** Beside recovery codes just made: copy them all, or save them as a text file. */
|
|
1231
|
+
copyCodes: string;
|
|
1232
|
+
downloadCodes: string;
|
|
1233
|
+
codesCopied: string;
|
|
1234
|
+
/** Said when the browser would not copy: the codes stay on screen to select. */
|
|
1235
|
+
codesNotCopied: string;
|
|
1236
|
+
/** The action that opens the form of a part already set (the name). */
|
|
1237
|
+
change: string;
|
|
1238
|
+
/** The password part, when the account has one. */
|
|
1239
|
+
passwordSet: string;
|
|
1240
|
+
/** Opens the form that adds another passkey, once the account has one. */
|
|
1241
|
+
addAnotherPasskey: string;
|
|
1228
1242
|
passkeys: string;
|
|
1229
1243
|
managePasskeys: string;
|
|
1230
1244
|
passkeysHelp: string;
|
|
@@ -1287,7 +1301,7 @@ interface AuthTexts {
|
|
|
1287
1301
|
/** By error code; one missing shows what the server said. */
|
|
1288
1302
|
errors: Record<string, string>;
|
|
1289
1303
|
}
|
|
1290
|
-
type Slot = 'form' | 'field' | 'label' | 'input' | 'button' | 'providerButton' | 'providerIcon' | 'link' | 'error' | 'fieldError' | 'hint' | 'notice' | 'pending' | 'separator' | 'footer' | 'check' | 'account' | 'section' | 'heading' | 'secret' | 'codes' | 'sessions' | 'session';
|
|
1304
|
+
type Slot = 'form' | 'field' | 'label' | 'input' | 'button' | 'providerButton' | 'providerIcon' | 'link' | 'error' | 'fieldError' | 'hint' | 'notice' | 'pending' | 'separator' | 'footer' | 'check' | 'account' | 'section' | 'heading' | 'secret' | 'qr' | 'codes' | 'sessions' | 'session';
|
|
1291
1305
|
interface AuthFormProps {
|
|
1292
1306
|
/** The language of the built-in sentences. Default: `en`. */
|
|
1293
1307
|
locale?: 'en' | 'es';
|