@aooth/login-client 0.1.58 → 0.1.60

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/index.d.cts CHANGED
@@ -13,7 +13,17 @@
13
13
  * is identical.
14
14
  */
15
15
  /** Error codes surfaced by {@link authorize}. */
16
- type AuthorizeErrorCode = /** The provider returned `?error=` on the callback (e.g. the user declined). */"provider_denied" /** The callback `state` did not match the one we generated (CSRF / instance mismatch). */ | "state_mismatch" /** The `POST /token` exchange failed (non-2xx, network, or malformed body). */ | "exchange_failed" /** No callback arrived before `timeoutMs` (or the `signal` aborted). */ | "timeout" /** The optional `statusUrl` confirmation did not return 200. */ | "status_check_failed";
16
+ type AuthorizeErrorCode =
17
+ /** The provider returned `?error=` on the callback (e.g. the user declined). */
18
+ "provider_denied" |
19
+ /** The callback `state` did not match the one we generated (CSRF / instance mismatch). */
20
+ "state_mismatch" |
21
+ /** The `POST /token` exchange failed (non-2xx, network, or malformed body). */
22
+ "exchange_failed" |
23
+ /** No callback arrived before `timeoutMs` (or the `signal` aborted). */
24
+ "timeout" |
25
+ /** The optional `statusUrl` confirmation did not return 200. */
26
+ "status_check_failed";
17
27
  /** A typed failure of the loopback login flow. */
18
28
  declare class AuthorizeError extends Error {
19
29
  readonly code: AuthorizeErrorCode;
package/dist/index.d.mts CHANGED
@@ -13,7 +13,17 @@
13
13
  * is identical.
14
14
  */
15
15
  /** Error codes surfaced by {@link authorize}. */
16
- type AuthorizeErrorCode = /** The provider returned `?error=` on the callback (e.g. the user declined). */"provider_denied" /** The callback `state` did not match the one we generated (CSRF / instance mismatch). */ | "state_mismatch" /** The `POST /token` exchange failed (non-2xx, network, or malformed body). */ | "exchange_failed" /** No callback arrived before `timeoutMs` (or the `signal` aborted). */ | "timeout" /** The optional `statusUrl` confirmation did not return 200. */ | "status_check_failed";
16
+ type AuthorizeErrorCode =
17
+ /** The provider returned `?error=` on the callback (e.g. the user declined). */
18
+ "provider_denied" |
19
+ /** The callback `state` did not match the one we generated (CSRF / instance mismatch). */
20
+ "state_mismatch" |
21
+ /** The `POST /token` exchange failed (non-2xx, network, or malformed body). */
22
+ "exchange_failed" |
23
+ /** No callback arrived before `timeoutMs` (or the `signal` aborted). */
24
+ "timeout" |
25
+ /** The optional `statusUrl` confirmation did not return 200. */
26
+ "status_check_failed";
17
27
  /** A typed failure of the loopback login flow. */
18
28
  declare class AuthorizeError extends Error {
19
29
  readonly code: AuthorizeErrorCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aooth/login-client",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "Zero-dependency CLI/loopback login helper for an aoothjs authorization server (browser round-trip + PKCE, returns a token)",
5
5
  "keywords": [
6
6
  "aoothjs",