@frontegg/ionic-capacitor 1.0.0-alpha.2 → 1.0.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.
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency "FronteggSwift", "1.1.0"
16
+ s.dependency "FronteggSwift", "1.1.1"
17
17
  s.swift_version = '5.1'
18
18
  s.pod_target_xcconfig = {
19
19
  'CODE_SIGNING_ALLOWED' => 'YES'
package/README.md CHANGED
@@ -356,6 +356,17 @@ import { FronteggService } from '@frontegg/ionic-capacitor';
356
356
  this.fronteggService.$isAuthenticated.subscribe(async () => {
357
357
  window.location.reload()
358
358
  });
359
+
360
+ /**
361
+ * Listens to application visibility changes
362
+ * Reload the page to trigger canActivate
363
+ * when application returns from login page without authentication
364
+ */
365
+ document.addEventListener('visibilitychange', () => {
366
+ if (document.visibilityState === 'visible' && !this.fronteggService.getState().isAuthenticated) {
367
+ window.location.reload()
368
+ }
369
+ });
359
370
  }
360
371
 
361
372
  /**
@@ -55,7 +55,7 @@ dependencies {
55
55
  implementation "androidx.browser:browser:1.5.0"
56
56
  implementation 'io.reactivex.rxjava3:rxkotlin:3.0.1'
57
57
  implementation 'com.google.code.gson:gson:2.8.9'
58
- implementation 'com.frontegg.sdk:android:1.1.2'
58
+ implementation 'com.frontegg.sdk:android:1.1.3'
59
59
 
60
60
  testImplementation "junit:junit:$junitVersion"
61
61
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/ionic-capacitor",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0",
4
4
  "description": "Frontegg Ionic Capacitor SDK",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",