@faable/auth-sdk 1.3.23 → 1.3.25

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.
@@ -1338,7 +1338,7 @@ export interface paths {
1338
1338
  put?: never;
1339
1339
  /**
1340
1340
  * Authorize a pending device request
1341
- * @description Authorizes a `device_code` on behalf of the currently authenticated user, allowing the device to subsequently exchange that code for tokens at `/oauth/token`.
1341
+ * @description Authorizes a `device_code` on behalf of the currently authenticated user, allowing the device to subsequently exchange that code for tokens at `/oauth/token`. Called by the first-party device-code confirm page, so it authenticates with the browser `faable_sess` session — NOT a bearer token (the page has no access token to send).
1342
1342
  */
1343
1343
  post: operations["oauth/deviceAuthorize"];
1344
1344
  delete?: never;
@@ -8553,6 +8553,8 @@ export interface operations {
8553
8553
  scope?: string;
8554
8554
  /** @description Identifier of the API the device wants to access. Resolved against the tenant Api resources (`Api.identifier`) at token issuance. */
8555
8555
  audience?: string;
8556
+ /** @description Human-friendly name of the requesting device (e.g. "marcs-mbp (macOS)"). Shown on the confirm page so the user can recognise the device being authorised. */
8557
+ device_name?: string;
8556
8558
  };
8557
8559
  };
8558
8560
  };
@@ -8638,6 +8640,7 @@ export interface operations {
8638
8640
  content: {
8639
8641
  "application/json": {
8640
8642
  device_code: string;
8643
+ device_name?: string;
8641
8644
  client: {
8642
8645
  name?: string;
8643
8646
  client_id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "1.3.23",
3
+ "version": "1.3.25",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",