Skip to content

Commit 8af6ee5

Browse files
tjleingThomas Leing
andauthored
Add authenticator callout to Android docs as well (#5434)
Co-authored-by: Thomas Leing <[email protected]>
1 parent 6703689 commit 8af6ee5

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@
742742
"jcenter",
743743
"jdoe",
744744
"jetbrains",
745+
"Jetpack",
745746
"jobTitle",
746747
"jpg",
747748
"js",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Callout info>
2+
3+
**New**: The Authenticator UI component for Android via Jetpack Compose is now available in developer preview!
4+
5+
Once you've gone through the steps below, you can use it to automatically [add authentication capabilities to your application](#option-1-use-the-authenticator-ui-component).
6+
7+
</Callout>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Authentication with Amplify
2+
3+
There are two ways to add authentication capabilities to your application.
4+
5+
### Option 1: Use the Authenticator UI component
6+
<Callout warning>
7+
8+
**Note:** The Authenticator UI component is only available with Jetpack Compose.
9+
10+
</Callout>
11+
12+
The **Authenticator** is a UI component that automatically integrates with your existing Amplify configuration and allows you to easily add the entire authentication flow to your application.
13+
14+
Visit [Authenticator | Amplify UI for Android](https://ui.docs.amplify.aws/android/connected-components/authenticator) to get started.
15+
16+
### Option 2: Manually call the Authentication APIs
17+
18+
Follow the instructions in [Sign In](/lib/auth/signin) to learn about how to integrate the registration and authentication flows in your application with the Auth APIs.

src/fragments/lib/auth/native_common/getting_started/common.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import ios1 from "/src/fragments/lib/auth/ios/getting_started/05_authenticator_c
44

55
<Fragments fragments={{ios: ios1}} />
66

7+
import androidAuthenticator from "/src/fragments/lib/auth/android/getting_started/05_authenticatorCallout.mdx";
8+
9+
<Fragments fragments={{android: androidAuthenticator}} />
10+
711
## Goal
812

913
To setup and configure your application with Amplify Auth and go through a simple api to check the current auth session.
@@ -98,6 +102,10 @@ import ios13 from "/src/fragments/lib/auth/ios/getting_started/45_authenticator.
98102

99103
<Fragments fragments={{ios: ios13}} />
100104

105+
import android14 from "/src/fragments/lib/auth/android/getting_started/45_authenticator.mdx";
106+
107+
<Fragments fragments={{android: android14}} />
108+
101109
## Next Steps
102110
Congratulations! You've successfully setup AWS Cognito Auth plugin. Check out the following links to see other Amplify Auth use cases:
103111

0 commit comments

Comments
 (0)