diff --git a/packages/amplify_core/doc/lib/auth.dart b/packages/amplify_core/doc/lib/auth.dart index ac51f3da61..6e48014a9b 100644 --- a/packages/amplify_core/doc/lib/auth.dart +++ b/packages/amplify_core/doc/lib/auth.dart @@ -484,7 +484,7 @@ Future forgetSpecificDevice(AuthDevice myDevice) async { // #enddocregion forget-specific-device // #docregion fetch-current-device -Future fetchCurrentUserDevice() async { +Future fetchCurrentDevice() async { try { final device = await Amplify.Auth.fetchCurrentDevice(); safePrint('Device: $device');