Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hosted/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion hosted/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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__))

Expand Down
24 changes: 12 additions & 12 deletions hosted/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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`)
Expand Down Expand Up @@ -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
9 changes: 4 additions & 5 deletions hosted/ios/Runner/Frontegg.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Enable hosted mode -->
<key>embeddedMode</key>
<false/>
<true/>
<key>baseUrl</key>
<string>https://autheu.davidantoon.me</string>
<key>clientId</key>
<string>b6adfe4c-d695-4c04-b95f-3ec9fd0c6cca</string>
<string>https://autheu.davidantoon.me</string>
<key>clientId</key>
<string>b6adfe4c-d695-4c04-b95f-3ec9fd0c6cca</string>
<key>logLevel</key>
<string>trace</string>
</dict>
Expand Down
32 changes: 32 additions & 0 deletions hosted/lib/user_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,38 @@ class _UserPageState extends State<UserPage> {
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"),
),
),
],
),
),
Expand Down
4 changes: 2 additions & 2 deletions hosted/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
2 changes: 1 addition & 1 deletion ios/frontegg_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading