diff --git a/hosted/ios/Flutter/Debug.xcconfig b/hosted/ios/Flutter/Debug.xcconfig index ec97fc6..e8efba1 100644 --- a/hosted/ios/Flutter/Debug.xcconfig +++ b/hosted/ios/Flutter/Debug.xcconfig @@ -1,2 +1,2 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/hosted/ios/Podfile b/hosted/ios/Podfile index 1193cec..d45b507 100644 --- a/hosted/ios/Podfile +++ b/hosted/ios/Podfile @@ -31,7 +31,7 @@ target 'Runner' do use_frameworks! use_modular_headers! - pod 'FronteggSwift', '~> 1.2.58' + pod 'FronteggSwift', '1.2.63' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) diff --git a/hosted/ios/Podfile.lock b/hosted/ios/Podfile.lock index 4e68182..7f4879e 100644 --- a/hosted/ios/Podfile.lock +++ b/hosted/ios/Podfile.lock @@ -3,10 +3,10 @@ PODS: - Flutter (1.0.0) - fluttertoast (0.0.2): - Flutter - - frontegg_flutter (1.0.27): + - frontegg_flutter (1.0.28): - Flutter - - FronteggSwift (~> 1.2.58) - - FronteggSwift (1.2.58) + - FronteggSwift (= 1.2.63) + - FronteggSwift (1.2.63) - integration_test (0.0.1): - Flutter - path_provider_foundation (0.0.1): @@ -23,7 +23,7 @@ DEPENDENCIES: - Flutter (from `Flutter`) - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) - frontegg_flutter (from `.symlinks/plugins/frontegg_flutter/ios`) - - FronteggSwift (~> 1.2.58) + - FronteggSwift (= 1.2.63) - integration_test (from `.symlinks/plugins/integration_test/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - patrol (from `.symlinks/plugins/patrol/darwin`) @@ -53,14 +53,14 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 - fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1 - frontegg_flutter: 51860a061114b0dbc62bfb511604b3be88a0bc2b - FronteggSwift: d8151ab0a5c753e7ebc240820b63f368a408cec4 - integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e - path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 - patrol: 51b76cc7c11a2933ee3e72482d930c75b9d4ec73 - url_launcher_ios: 694010445543906933d732453a59da0a173ae33d + fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0f + frontegg_flutter: 74d0c90b11fb03e41789b1e727873b30940c672f + FronteggSwift: 23e4f1014fd6d40a7dfb1e60f5c7c3362da7f057 + integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573 + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 + patrol: cf2cd48c7f3e5171610111994f7b466cd76d1f57 + url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe -PODFILE CHECKSUM: 9aaf54413613544116a7f7cfbfa9bb1618dabb8e +PODFILE CHECKSUM: 245142cae260d9989bf69a57854e1363741e89eb COCOAPODS: 1.16.2 diff --git a/hosted/ios/Runner/Frontegg.plist b/hosted/ios/Runner/Frontegg.plist index 0afd4cc..3d32f08 100644 --- a/hosted/ios/Runner/Frontegg.plist +++ b/hosted/ios/Runner/Frontegg.plist @@ -2,13 +2,12 @@ - embeddedMode - + baseUrl - https://autheu.davidantoon.me - clientId - b6adfe4c-d695-4c04-b95f-3ec9fd0c6cca + https://autheu.davidantoon.me + clientId + b6adfe4c-d695-4c04-b95f-3ec9fd0c6cca logLevel trace diff --git a/hosted/lib/user_page.dart b/hosted/lib/user_page.dart index 9577917..df8a489 100644 --- a/hosted/lib/user_page.dart +++ b/hosted/lib/user_page.dart @@ -158,6 +158,38 @@ class _UserPageState extends State { child: const Text("Sensitive action"), ), ), + Padding( + padding: const EdgeInsets.only( + top: 8.0, + left: 10.5, + right: 10.5, + bottom: 24, + ), + child: ElevatedButton( + onPressed: () async { + try { + final refreshToken = state.refreshToken; + if (refreshToken == null || refreshToken.isEmpty) { + _showFailureMessage( + "Refresh token is not available", + ); + return; + } + await frontegg.requestAuthorize( + refreshToken: refreshToken, + ); + _showSuccessMessage( + "Authorization request completed successfully", + ); + } catch (e) { + _showFailureMessage( + "Failed to request authorization: $e", + ); + } + }, + child: const Text("Request Authorize"), + ), + ), ], ), ), diff --git a/hosted/pubspec.lock b/hosted/pubspec.lock index 7c2da47..3bea529 100644 --- a/hosted/pubspec.lock +++ b/hosted/pubspec.lock @@ -139,7 +139,7 @@ packages: path: ".." relative: true source: path - version: "1.0.25" + version: "1.0.28" fuchsia_remote_debug_protocol: dependency: transitive description: flutter @@ -548,5 +548,5 @@ packages: source: hosted version: "1.1.0" sdks: - dart: ">=3.8.0-0 <4.0.0" + dart: ">=3.7.0-0 <4.0.0" flutter: ">=3.24.0" diff --git a/ios/frontegg_flutter.podspec b/ios/frontegg_flutter.podspec index 0abc107..dd5bad6 100644 --- a/ios/frontegg_flutter.podspec +++ b/ios/frontegg_flutter.podspec @@ -15,7 +15,7 @@ A new Flutter plugin project. s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' - s.dependency 'FronteggSwift', '~> 1.2.58' + s.dependency 'FronteggSwift', '1.2.63' s.platform = :ios, '14.0' # Flutter.framework does not contain a i386 slice.