@palbase/web 7.1.0 → 7.2.1
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/dist/{analytics-facade-CZIwbsvG.d.ts → analytics-facade-DLfnVVwL.d.ts} +39 -0
- package/dist/{analytics-facade-esr6cOBN.d.cts → analytics-facade-jyXv7Cu4.d.cts} +39 -0
- package/dist/{chunk-P6TWUWZC.js → chunk-GITHW5JK.js} +36 -2
- package/dist/chunk-GITHW5JK.js.map +1 -0
- package/dist/gen/cli.cjs +19 -5
- package/dist/gen/cli.cjs.map +1 -1
- package/dist/gen/cli.js +19 -5
- package/dist/gen/cli.js.map +1 -1
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +35 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/dist/next/client.cjs +35 -1
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.js +1 -1
- package/dist/next/index.cjs +35 -1
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +2 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/{pb-BT-vKA4j.d.cts → pb-CfYQGEn0.d.cts} +1 -1
- package/dist/{pb-AWwslm5m.d.ts → pb-DdzpEkPY.d.ts} +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-P6TWUWZC.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PalbeConfig } from './analytics-facade-
|
|
2
|
-
export { d as PalbeRuntime, e as buildRuntime } from './analytics-facade-
|
|
1
|
+
import { P as PalbeConfig } from './analytics-facade-jyXv7Cu4.cjs';
|
|
2
|
+
export { d as PalbeRuntime, e as buildRuntime } from './analytics-facade-jyXv7Cu4.cjs';
|
|
3
3
|
import { B as BackendError } from './errors-fDoNdTrJ.cjs';
|
|
4
|
-
export { P as PB, c as createBoundClient } from './pb-
|
|
4
|
+
export { P as PB, c as createBoundClient } from './pb-CfYQGEn0.cjs';
|
|
5
5
|
import './storage-BPaeSG8K.cjs';
|
|
6
6
|
import './pooled-flags-4GtDtsiu.js';
|
|
7
7
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PalbeConfig } from './analytics-facade-
|
|
2
|
-
export { d as PalbeRuntime, e as buildRuntime } from './analytics-facade-
|
|
1
|
+
import { P as PalbeConfig } from './analytics-facade-DLfnVVwL.js';
|
|
2
|
+
export { d as PalbeRuntime, e as buildRuntime } from './analytics-facade-DLfnVVwL.js';
|
|
3
3
|
import { B as BackendError } from './errors-fDoNdTrJ.js';
|
|
4
|
-
export { P as PB, c as createBoundClient } from './pb-
|
|
4
|
+
export { P as PB, c as createBoundClient } from './pb-DdzpEkPY.js';
|
|
5
5
|
import './storage-BPaeSG8K.js';
|
|
6
6
|
import './pooled-flags-4GtDtsiu.js';
|
|
7
7
|
|
package/dist/internal.js
CHANGED
package/dist/next/client.cjs
CHANGED
|
@@ -735,6 +735,20 @@ var AuthClient = class {
|
|
|
735
735
|
body: params
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
* Give a PASSWORDLESS account its first password.
|
|
740
|
+
*
|
|
741
|
+
* Separate from `changePassword` because that one cannot serve the case: it
|
|
742
|
+
* sends a current password and palauth answers an account that has none with
|
|
743
|
+
* 401. Requires a RECENT sign-in (403 `reauthentication_required` otherwise,
|
|
744
|
+
* the same gate passkey enrollment carries); an account that already has a
|
|
745
|
+
* password gets 409 `password_already_set`.
|
|
746
|
+
*/
|
|
747
|
+
async setPassword(params) {
|
|
748
|
+
return this.httpClient.request("POST", "/auth/password/set", {
|
|
749
|
+
body: params
|
|
750
|
+
});
|
|
751
|
+
}
|
|
738
752
|
// ── Token ───────────────────────────────────────────────
|
|
739
753
|
async refresh() {
|
|
740
754
|
const refreshToken = this.tokenManager.getRefreshToken();
|
|
@@ -1765,6 +1779,26 @@ var PalbeAuth = class {
|
|
|
1765
1779
|
})
|
|
1766
1780
|
);
|
|
1767
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Give a passwordless account its FIRST password, in-app.
|
|
1784
|
+
*
|
|
1785
|
+
* For accounts created with a passkey or a social provider: they have no
|
|
1786
|
+
* current password, so `updatePassword` cannot serve them — it sends one and
|
|
1787
|
+
* the server answers 401. Before this existed the only route was the
|
|
1788
|
+
* password-RESET e-mail, which asks someone already signed in to go find
|
|
1789
|
+
* their inbox.
|
|
1790
|
+
*
|
|
1791
|
+
* Requires a RECENT sign-in, not merely a session: a first password is a
|
|
1792
|
+
* credential that outlives the rest, so the server answers 403
|
|
1793
|
+
* `reauthentication_required` on a stale one — the same gate
|
|
1794
|
+
* `registerPasskey` carries. An account that already has a password gets 409
|
|
1795
|
+
* `password_already_set`; change it with `updatePassword` instead.
|
|
1796
|
+
*
|
|
1797
|
+
* The session stays valid — no re-login.
|
|
1798
|
+
*/
|
|
1799
|
+
async setPassword(newPassword) {
|
|
1800
|
+
unwrap(await this.rt.authClient.setPassword({ new_password: newPassword }));
|
|
1801
|
+
}
|
|
1768
1802
|
async verifyEmail(params) {
|
|
1769
1803
|
unwrap(await this.rt.authClient.verifyEmail(params));
|
|
1770
1804
|
}
|
|
@@ -9064,7 +9098,7 @@ function defaultSessionStorage(key) {
|
|
|
9064
9098
|
}
|
|
9065
9099
|
|
|
9066
9100
|
// src/version.ts
|
|
9067
|
-
var VERSION = "7.1
|
|
9101
|
+
var VERSION = "7.2.1";
|
|
9068
9102
|
|
|
9069
9103
|
// src/runtime.ts
|
|
9070
9104
|
function buildRuntime(config) {
|