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 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 and `CLAUDE.md` for architecture notes.
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-token`, {
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, e), 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 = {
@@ -37,7 +37,9 @@ export interface RefreshTokenRequest {
37
37
  }
38
38
  export interface RefreshTokenResponse {
39
39
  access_token: string;
40
+ refresh_token: string;
40
41
  token_type: string;
42
+ expires_in: number;
41
43
  }
42
44
  export interface ForgotPasswordRequest {
43
45
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astrogators-shared-ui",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Shared UI components and utilities for Astrogator's Table applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",