astrogators-shared-ui 0.6.1 → 0.6.2
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 +2 -1
- package/dist/index.js +2 -2
- package/dist/src/types/user.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,8 @@ to the public npm registry as `astrogators-shared-ui` (unscoped).
|
|
|
9
9
|
> `.npmrc` scope config is needed to install.
|
|
10
10
|
|
|
11
11
|
This is a library — there is no app shell here. See `PUBLISHING.md` for the
|
|
12
|
-
release flow
|
|
12
|
+
release flow, `CHANGELOG.md` for what shipped in each version, and
|
|
13
|
+
`CLAUDE.md` for architecture notes.
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
package/dist/index.js
CHANGED
|
@@ -211,14 +211,14 @@ var x = "astrogators_access_token", S = "astrogators_refresh_token", C = () => l
|
|
|
211
211
|
async refreshAccessToken() {
|
|
212
212
|
let e = E();
|
|
213
213
|
if (!e) throw Error("No refresh token available");
|
|
214
|
-
let t = await fetch(`${this.baseURL}/api/v1/auth/refresh
|
|
214
|
+
let t = await fetch(`${this.baseURL}/api/v1/auth/refresh`, {
|
|
215
215
|
method: "POST",
|
|
216
216
|
headers: { "Content-Type": "application/json" },
|
|
217
217
|
body: JSON.stringify({ refresh_token: e })
|
|
218
218
|
});
|
|
219
219
|
if (!t.ok) throw A(), this.onUnauthorized?.(), Error("Token refresh failed");
|
|
220
220
|
let n = await t.json();
|
|
221
|
-
return k(n.access_token,
|
|
221
|
+
return k(n.access_token, n.refresh_token), n.access_token;
|
|
222
222
|
}
|
|
223
223
|
async request(e, t = {}) {
|
|
224
224
|
let n = C(), r = {
|
package/dist/src/types/user.d.ts
CHANGED