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

This file was deleted.

22 changes: 6 additions & 16 deletions src/fragments/lib/auth/common/device_features/common.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<Callout>

The [device tracking and remembering](https://aws.amazon.com/blogs/mobile/tracking-and-remembering-devices-using-amazon-cognito-your-user-pools/) features are currently not available within the library when using the federated OAuth flow with Cognito User Pools or Hosted UI.

</Callout>

Remembering a device is useful in conjunction with Multi-Factor Authentication (MFA). If MFA is enabled for an Amazon Cognito user pool, end users have to type in a security code received via e-mail or SMS each time they want to sign in. This increases security but comes at the expense of the user's experience.

Remembering a device allows the second factor requirement to be automatically met when the user signs in on that device, thereby reducing friction in the user experience.

## Configure Auth Category
<Callout>
Device remembering functionality does not work if you use one of the web UI sign in methods.
</Callout>

To enable remembered device functionality, open the Cognito User Pool console. To do this, **go to your project directory** and **issue the command**:
```bash
amplify auth console
Expand Down Expand Up @@ -97,15 +99,3 @@ import flutter11 from "/src/fragments/lib/auth/flutter/device_features/30_fetchD
* A not-remembered device is a tracked device where Cognito has been configured to require users to "Opt-in" to remember a device, but the user has not opt-ed in to having the device remembered. This use case is used for users signing into their application from a device that they don't own.
* **Forgotten**
* In the event that you no longer want to remember or track a device, you can use the `Auth.forgetDevice()` API to remove this device from being both remembered and tracked.

import js12 from "/src/fragments/lib/auth/js/device_features/40_trackDevice.mdx";
import flutter13 from "/src/fragments/lib/auth/flutter/device_features/40_trackDevice.mdx";
import ios14 from "/src/fragments/lib/auth/ios/device_features/40_trackDevice.mdx";
import android15 from "/src/fragments/lib/auth/android/device_features/40_trackDevice.mdx";

## Known Limitations
When using the federated OAuth flow with Cognito User Pools, the [device tracking and remembering](https://aws.amazon.com/blogs/mobile/tracking-and-remembering-devices-using-amazon-cognito-your-user-pools/) features are currently not available within the library.
<Fragments fragments={{js: js12, 'react-native': js12}} />
<Fragments fragments={{flutter: flutter13}} />
<Fragments fragments={{ios: ios14}} />
<Fragments fragments={{android: android15}} />

This file was deleted.

This file was deleted.

This file was deleted.