@atlasauth/expo 0.6.0 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # @atlasauth/expo changelog
2
2
 
3
+ ## 0.7.0 — 2026-11-13
4
+
5
+ - `useAccountSecurity` / `createAccountSecurityActions` add `revokeAllTrustedDevices`.
6
+ - Needs `@atlasauth/js` 0.41.0 or later.
7
+
3
8
  ## 0.6.0 — 2026-11-13
4
9
 
5
10
  - `useAccountSecurity` and `createAccountSecurityActions`; `linkWithIdToken`; captcha solved automatically on Hermes/JSC.
@@ -1,5 +1,5 @@
1
- import { changePassword, listTrustedDevices, revokeTrustedDevice, setPassword, type FapiClient } from '@atlasauth/js';
2
- export { changePassword, setPassword, listTrustedDevices, revokeTrustedDevice };
1
+ import { changePassword, listTrustedDevices, revokeAllTrustedDevices, revokeTrustedDevice, setPassword, type FapiClient } from '@atlasauth/js';
2
+ export { changePassword, setPassword, listTrustedDevices, revokeTrustedDevice, revokeAllTrustedDevices };
3
3
  /** The calls bound to a client; separated from React so it is testable with a fake one. */
4
4
  export declare function createAccountSecurityActions(client: FapiClient): {
5
5
  changePassword: (input: {
@@ -9,6 +9,7 @@ export declare function createAccountSecurityActions(client: FapiClient): {
9
9
  setPassword: (password: string) => Promise<import("@atlasauth/js").SetPasswordResult>;
10
10
  listTrustedDevices: () => Promise<import("@atlasauth/js").TrustedDevicesResult>;
11
11
  revokeTrustedDevice: (id: string) => Promise<import("@atlasauth/js").RevokeTrustedDeviceResult>;
12
+ revokeAllTrustedDevices: () => Promise<import("@atlasauth/js").RevokeAllTrustedDevicesResult>;
12
13
  };
13
14
  /** `const { changePassword } = useAccountSecurity();` bound to the provider's bearer-authenticated client. */
14
15
  export declare function useAccountSecurity(): {
@@ -19,4 +20,5 @@ export declare function useAccountSecurity(): {
19
20
  setPassword: (password: string) => Promise<import("@atlasauth/js").SetPasswordResult>;
20
21
  listTrustedDevices: () => Promise<import("@atlasauth/js").TrustedDevicesResult>;
21
22
  revokeTrustedDevice: (id: string) => Promise<import("@atlasauth/js").RevokeTrustedDeviceResult>;
23
+ revokeAllTrustedDevices: () => Promise<import("@atlasauth/js").RevokeAllTrustedDevicesResult>;
22
24
  } | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.revokeTrustedDevice = exports.listTrustedDevices = exports.setPassword = exports.changePassword = void 0;
3
+ exports.revokeAllTrustedDevices = exports.revokeTrustedDevice = exports.listTrustedDevices = exports.setPassword = exports.changePassword = void 0;
4
4
  exports.createAccountSecurityActions = createAccountSecurityActions;
5
5
  exports.useAccountSecurity = useAccountSecurity;
6
6
  /**
@@ -12,6 +12,7 @@ const react_1 = require("react");
12
12
  const js_1 = require("@atlasauth/js");
13
13
  Object.defineProperty(exports, "changePassword", { enumerable: true, get: function () { return js_1.changePassword; } });
14
14
  Object.defineProperty(exports, "listTrustedDevices", { enumerable: true, get: function () { return js_1.listTrustedDevices; } });
15
+ Object.defineProperty(exports, "revokeAllTrustedDevices", { enumerable: true, get: function () { return js_1.revokeAllTrustedDevices; } });
15
16
  Object.defineProperty(exports, "revokeTrustedDevice", { enumerable: true, get: function () { return js_1.revokeTrustedDevice; } });
16
17
  Object.defineProperty(exports, "setPassword", { enumerable: true, get: function () { return js_1.setPassword; } });
17
18
  const policies_1 = require("./policies");
@@ -22,6 +23,7 @@ function createAccountSecurityActions(client) {
22
23
  setPassword: (password) => (0, js_1.setPassword)(client, password),
23
24
  listTrustedDevices: () => (0, js_1.listTrustedDevices)(client),
24
25
  revokeTrustedDevice: (id) => (0, js_1.revokeTrustedDevice)(client, id),
26
+ revokeAllTrustedDevices: () => (0, js_1.revokeAllTrustedDevices)(client),
25
27
  };
26
28
  }
27
29
  /** `const { changePassword } = useAccountSecurity();` bound to the provider's bearer-authenticated client. */
@@ -1 +1 @@
1
- {"version":3,"file":"account-security.js","sourceRoot":"","sources":["../src/account-security.ts"],"names":[],"mappings":";;;AAYA,oEAOC;AAGD,gDAGC;AAzBD;;;;GAIG;AACH,iCAAgC;AAChC,sCAAsH;AAG7G,+FAHA,mBAAc,OAGA;AAAe,mGAHb,uBAAkB,OAGa;AAAE,oGAHb,wBAAmB,OAGa;AAApD,4FAHyC,gBAAW,OAGzC;AAFpC,yCAA+C;AAI/C,2FAA2F;AAC3F,SAAgB,4BAA4B,CAAC,MAAkB;IAC7D,OAAO;QACL,cAAc,EAAE,CAAC,KAAuD,EAAE,EAAE,CAAC,IAAA,mBAAc,EAAC,MAAM,EAAE,KAAK,CAAC;QAC1G,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,gBAAW,EAAC,MAAM,EAAE,QAAQ,CAAC;QAChE,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAA,uBAAkB,EAAC,MAAM,CAAC;QACpD,mBAAmB,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,IAAA,wBAAmB,EAAC,MAAM,EAAE,EAAE,CAAC;KACrE,CAAC;AACJ,CAAC;AAED,8GAA8G;AAC9G,SAAgB,kBAAkB;IAChC,MAAM,MAAM,GAAG,IAAA,4BAAiB,GAAE,CAAC;IACnC,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACzF,CAAC"}
1
+ {"version":3,"file":"account-security.js","sourceRoot":"","sources":["../src/account-security.ts"],"names":[],"mappings":";;;AAYA,oEAQC;AAGD,gDAGC;AA1BD;;;;GAIG;AACH,iCAAgC;AAChC,sCAA+I;AAGtI,+FAHA,mBAAc,OAGA;AAAe,mGAHb,uBAAkB,OAGa;AAAuB,wGAHlC,4BAAuB,OAGkC;AAA5C,oGAHY,wBAAmB,OAGZ;AAApD,4FAHkE,gBAAW,OAGlE;AAFpC,yCAA+C;AAI/C,2FAA2F;AAC3F,SAAgB,4BAA4B,CAAC,MAAkB;IAC7D,OAAO;QACL,cAAc,EAAE,CAAC,KAAuD,EAAE,EAAE,CAAC,IAAA,mBAAc,EAAC,MAAM,EAAE,KAAK,CAAC;QAC1G,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,gBAAW,EAAC,MAAM,EAAE,QAAQ,CAAC;QAChE,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAA,uBAAkB,EAAC,MAAM,CAAC;QACpD,mBAAmB,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,IAAA,wBAAmB,EAAC,MAAM,EAAE,EAAE,CAAC;QACpE,uBAAuB,EAAE,GAAG,EAAE,CAAC,IAAA,4BAAuB,EAAC,MAAM,CAAC;KAC/D,CAAC;AACJ,CAAC;AAED,8GAA8G;AAC9G,SAAgB,kBAAkB;IAChC,MAAM,MAAM,GAAG,IAAA,4BAAiB,GAAE,CAAC;IACnC,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACzF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/expo",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {
@@ -8,7 +8,7 @@
8
8
  "@atlasauth/react": "^0.35.0"
9
9
  },
10
10
  "peerDependencies": {
11
- "@atlasauth/js": ">=0.40.0 <1.0.0",
11
+ "@atlasauth/js": ">=0.41.0 <1.0.0",
12
12
  "react": ">=18",
13
13
  "react-native": ">=0.73",
14
14
  "expo-secure-store": ">=12",
@@ -37,7 +37,7 @@
37
37
  "react": "^18.3.1",
38
38
  "typescript": "^5.6.3",
39
39
  "vitest": "^3.2.7",
40
- "@atlasauth/js": "0.40.0"
40
+ "@atlasauth/js": "0.41.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"