We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b520493 commit 4bdc90aCopy full SHA for 4bdc90a
packages/amplify_core/doc/lib/auth.dart
@@ -483,6 +483,17 @@ Future<void> forgetSpecificDevice(AuthDevice myDevice) async {
483
}
484
// #enddocregion forget-specific-device
485
486
+// #docregion fetch-current-device
487
+Future<void> fetchCurrentUserDevice() async {
488
+ try {
489
+ final device = await Amplify.Auth.fetchCurrentDevice();
490
+ safePrint('Device: $device');
491
+ } on AuthException catch (e) {
492
+ safePrint('Get current device failed with error: $e');
493
+ }
494
+}
495
+// #enddocregion fetch-current-device
496
+
497
// #docregion fetch-devices
498
Future<void> fetchAllDevices() async {
499
try {
0 commit comments