@faable/auth-sdk 2.7.64 → 2.7.65
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/api/types.d.ts +8 -2
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +10 -4
package/dist/api/types.d.ts
CHANGED
|
@@ -26559,6 +26559,8 @@ export interface operations {
|
|
|
26559
26559
|
redirect_to?: string;
|
|
26560
26560
|
/** @description The "Remember me on this device" checkbox. Honoured only when the tenant shows one (`login_methods.remember_me: "optional"`). */
|
|
26561
26561
|
remember_me?: boolean;
|
|
26562
|
+
/** @description The login's key from `/authorize` — the hosted screen's `?state=`. Carries the client's OAuth request (its `redirect_uri`, its own `state`, PKCE challenge, nonce, scope) into the code this login issues. Absent when the screen was not opened by `/authorize` (device-code confirm, account pages). */
|
|
26563
|
+
state?: string;
|
|
26562
26564
|
};
|
|
26563
26565
|
};
|
|
26564
26566
|
};
|
|
@@ -26577,6 +26579,8 @@ export interface operations {
|
|
|
26577
26579
|
/**
|
|
26578
26580
|
* @description `invalid_client` — The `client_id` in the request does not name a client of this account.
|
|
26579
26581
|
*
|
|
26582
|
+
* `invalid_state` — The `state` is missing, expired, or does not describe a resumable step.
|
|
26583
|
+
*
|
|
26580
26584
|
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
26581
26585
|
*/
|
|
26582
26586
|
400: {
|
|
@@ -26586,7 +26590,7 @@ export interface operations {
|
|
|
26586
26590
|
content: {
|
|
26587
26591
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
26588
26592
|
/** @enum {string} */
|
|
26589
|
-
error_code?: "invalid_client" | "validation_error";
|
|
26593
|
+
error_code?: "invalid_client" | "invalid_state" | "validation_error";
|
|
26590
26594
|
};
|
|
26591
26595
|
};
|
|
26592
26596
|
};
|
|
@@ -26594,6 +26598,8 @@ export interface operations {
|
|
|
26594
26598
|
* @description `invalid_otp` — The one-time password is wrong or expired.
|
|
26595
26599
|
*
|
|
26596
26600
|
* `login_denied` — A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.
|
|
26601
|
+
*
|
|
26602
|
+
* `state_mismatch` — The `state` belongs to another account, session, client or ceremony.
|
|
26597
26603
|
*/
|
|
26598
26604
|
401: {
|
|
26599
26605
|
headers: {
|
|
@@ -26602,7 +26608,7 @@ export interface operations {
|
|
|
26602
26608
|
content: {
|
|
26603
26609
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
26604
26610
|
/** @enum {string} */
|
|
26605
|
-
error_code?: "invalid_otp" | "login_denied";
|
|
26611
|
+
error_code?: "invalid_otp" | "login_denied" | "state_mismatch";
|
|
26606
26612
|
};
|
|
26607
26613
|
};
|
|
26608
26614
|
};
|
package/dist/version.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// login pages could not import the SDK at all. Same pattern as auth-js.
|
|
10
10
|
//
|
|
11
11
|
// The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
|
|
12
|
-
export const version = "2.7.
|
|
12
|
+
export const version = "2.7.65";
|
|
13
13
|
// Short git SHA of the released commit. The version dates a build; this names
|
|
14
14
|
// the exact tree, so a canonical log line or an audit entry leads straight to
|
|
15
15
|
// `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
|
|
16
16
|
// link) cannot be mistaken for a real commit — auth only records values that
|
|
17
17
|
// look like a SHA, and this one never will.
|
|
18
|
-
export const commit = "
|
|
18
|
+
export const commit = "605b840";
|
|
19
19
|
// What this SDK writes in `x-faable-client`. Exported for a consumer that
|
|
20
20
|
// builds a strategy on its own (outside `FaableAuthApi`) and still wants the
|
|
21
21
|
// token request attributed — a bare `authClientCredentials` stamps only what
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@faablecloud/auth",
|
|
5
5
|
"description": "Auth Platform made by Faable. Manage Users and Roles",
|
|
6
|
-
"version": "2.52.
|
|
6
|
+
"version": "2.52.3",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -54698,6 +54698,10 @@
|
|
|
54698
54698
|
"remember_me": {
|
|
54699
54699
|
"type": "boolean",
|
|
54700
54700
|
"description": "The \"Remember me on this device\" checkbox. Honoured only when the tenant shows one (`login_methods.remember_me: \"optional\"`)."
|
|
54701
|
+
},
|
|
54702
|
+
"state": {
|
|
54703
|
+
"type": "string",
|
|
54704
|
+
"description": "The login's key from `/authorize` — the hosted screen's `?state=`. Carries the client's OAuth request (its `redirect_uri`, its own `state`, PKCE challenge, nonce, scope) into the code this login issues. Absent when the screen was not opened by `/authorize` (device-code confirm, account pages)."
|
|
54701
54705
|
}
|
|
54702
54706
|
}
|
|
54703
54707
|
}
|
|
@@ -54724,7 +54728,7 @@
|
|
|
54724
54728
|
}
|
|
54725
54729
|
},
|
|
54726
54730
|
"400": {
|
|
54727
|
-
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
54731
|
+
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`invalid_state` — The `state` is missing, expired, or does not describe a resumable step.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
54728
54732
|
"content": {
|
|
54729
54733
|
"application/json": {
|
|
54730
54734
|
"schema": {
|
|
@@ -54739,6 +54743,7 @@
|
|
|
54739
54743
|
"type": "string",
|
|
54740
54744
|
"enum": [
|
|
54741
54745
|
"invalid_client",
|
|
54746
|
+
"invalid_state",
|
|
54742
54747
|
"validation_error"
|
|
54743
54748
|
]
|
|
54744
54749
|
}
|
|
@@ -54750,7 +54755,7 @@
|
|
|
54750
54755
|
}
|
|
54751
54756
|
},
|
|
54752
54757
|
"401": {
|
|
54753
|
-
"description": "`invalid_otp` — The one-time password is wrong or expired.\n\n`login_denied` — A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant
|
|
54758
|
+
"description": "`invalid_otp` — The one-time password is wrong or expired.\n\n`login_denied` — A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.\n\n`state_mismatch` — The `state` belongs to another account, session, client or ceremony.",
|
|
54754
54759
|
"content": {
|
|
54755
54760
|
"application/json": {
|
|
54756
54761
|
"schema": {
|
|
@@ -54765,7 +54770,8 @@
|
|
|
54765
54770
|
"type": "string",
|
|
54766
54771
|
"enum": [
|
|
54767
54772
|
"invalid_otp",
|
|
54768
|
-
"login_denied"
|
|
54773
|
+
"login_denied",
|
|
54774
|
+
"state_mismatch"
|
|
54769
54775
|
]
|
|
54770
54776
|
}
|
|
54771
54777
|
}
|