@passflow/core 0.22.0 → 0.23.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 +23 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.mjs +653 -649
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
- [PassflowSignUpPayload](#passflowsignuppayload)
|
|
53
53
|
- [UserMembership](#usermembership)
|
|
54
54
|
- [PassflowEvent](#passflowevent)
|
|
55
|
+
- [Admin settings secrets](#admin-settings-secrets)
|
|
55
56
|
- [Detailed Examples](#detailed-examples)
|
|
56
57
|
- [Complete Sign In Flow](#complete-sign-in-flow)
|
|
57
58
|
- [Authentication with Passkeys](#authentication-with-passkeys)
|
|
@@ -956,6 +957,28 @@ enum PassflowEvent {
|
|
|
956
957
|
}
|
|
957
958
|
```
|
|
958
959
|
|
|
960
|
+
#### Admin settings secrets
|
|
961
|
+
|
|
962
|
+
App secrets are write-only and server settings secrets come back masked. The SDK has no admin
|
|
963
|
+
client; these exports are for admin UIs that call the admin routes themselves.
|
|
964
|
+
|
|
965
|
+
```typescript
|
|
966
|
+
type AppSettings = {
|
|
967
|
+
// ...
|
|
968
|
+
debug_otp_code_for_registration?: string; // write-only: answers return ""
|
|
969
|
+
debug_otp_code_set?: boolean; // read-only: true when a code is stored
|
|
970
|
+
};
|
|
971
|
+
type AppSecretName = "debug_otp_code_for_registration" | "fcm_server_key" | "webpush_vapid_private_key";
|
|
972
|
+
const APP_SECRET_NAMES: readonly AppSecretName[]; // DELETE /admin/apps/{id}/secrets/{name}
|
|
973
|
+
|
|
974
|
+
type MaskedSecret = string; // "mask://********" or "mask://********/<16 hex>"
|
|
975
|
+
const MASKED_SECRET_PREFIX = "mask://";
|
|
976
|
+
const SETTINGS_MASKED_VALUE_UNKNOWN_ERROR_ID = "error.server.update.settings.masked.value.unknown";
|
|
977
|
+
function isMaskedSecret(value: unknown): value is MaskedSecret;
|
|
978
|
+
```
|
|
979
|
+
|
|
980
|
+
Write, keep and clear rules: [docs/admin-secrets.md](docs/admin-secrets.md).
|
|
981
|
+
|
|
959
982
|
## Detailed Examples
|
|
960
983
|
|
|
961
984
|
### Complete Sign In Flow
|