@rdlabo/ionic-angular-kit 21.4.8 → 21.4.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "21.4.8",
3
+ "version": "21.4.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-team/ionic-angular-library.git"
@@ -899,7 +899,15 @@ interface KitRemoteAccessRecovery {
899
899
  * @returns `false` when a newer logout or identity transition superseded this activation.
900
900
  */
901
901
  activate(lease: KitAuthAccessLease): Promise<boolean>;
902
- resume(): Promise<void>;
902
+ /**
903
+ * Resume remote-only work after access has been published.
904
+ *
905
+ * @param lease - Post-grant lease supplied by the kit. Check it after every await before
906
+ * navigation or other user-visible side effects, because logout or a newer identity transition
907
+ * may supersede this resume while transport work is settling. Optional for source compatibility
908
+ * with callers that manually resumed a recovery result before leases were introduced.
909
+ */
910
+ resume(lease?: KitAuthAccessLease): Promise<void>;
903
911
  }
904
912
  /** Recovery-specific authentication configuration consumed by {@link KitAuthRecoveryService}. */
905
913
  interface KitAuthRecoveryConfig {
@@ -945,8 +953,13 @@ declare class KitAuthAccessService {
945
953
  suspend(lease: KitAuthAccessLease): boolean;
946
954
  /** Publish a verified local-replica-only session. */
947
955
  grantLocal(): void;
948
- /** Publish a remotely authenticated session. */
949
- grantRemote(): void;
956
+ /**
957
+ * Publish a remotely authenticated session and return the lease that owns that publication.
958
+ *
959
+ * The revision is fixed before synchronous `mode$` subscribers run. A subscriber that starts a
960
+ * newer logout or identity transition therefore makes the returned lease stale.
961
+ */
962
+ grantRemote(): KitAuthAccessLease;
950
963
  /** Revoke both local and remote access. */
951
964
  clear(): void;
952
965
  static ɵfac: i0.ɵɵFactoryDeclaration<KitAuthAccessService, never>;