Skip to content

Commit 7b7db83

Browse files
committed
chore: remove duplicated paragraph in auth section and updated callout on remember a device
1 parent 5df9bb7 commit 7b7db83

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/fragments/lib-v1/auth/common/device_features/common.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
<InlineFilter filters={["flutter"]}>
2+
<Callout>
3+
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.
4+
</Callout>
5+
</InlineFilter>
6+
17
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.
28

39
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.
410

511
## Configure Auth Category
612

13+
<InlineFilter filters={["ios", "android"]}>
714
<Callout>
815
Device remembering functionality does not work if you use one of the web UI
916
sign in methods.
1017
</Callout>
18+
</InlineFilter>
1119

1220
To enable remembered device functionality, open the Cognito User Pool console. To do this, **go to your project directory** and **issue the command**:
1321

src/fragments/lib-v1/auth/native_common/access_credentials/common.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ An intentional decision with Amplify Auth was to avoid any public methods exposi
22

33
With Auth, you simply sign in and it handles everything else needed to keep the credentials up to date and vend them to the other categories.
44

5+
<InlineFilter filters={["swift", "android"]}>
56
However, if you need to access them in relation to working with an API outside Amplify or want access to AWS specific identifying information (e.g. IdentityId), you can access these implementation details by casting the result of fetchAuthSession as follows:
7+
</InlineFilter>
68

79
import android0 from '/src/fragments/lib-v1/auth/android/access_credentials/10_fetchAuthSession.mdx';
810

0 commit comments

Comments
 (0)