Skip to content

Commit

Permalink
Add authenticator callout to Android docs as well (#5434)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Leing <leint@amazon.com>
  • Loading branch information
tjleing and Thomas Leing authored May 9, 2023
1 parent 6703689 commit 8af6ee5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@
"jcenter",
"jdoe",
"jetbrains",
"Jetpack",
"jobTitle",
"jpg",
"js",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Callout info>

**New**: The Authenticator UI component for Android via Jetpack Compose is now available in developer preview!

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).

</Callout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Authentication with Amplify

There are two ways to add authentication capabilities to your application.

### Option 1: Use the Authenticator UI component
<Callout warning>

**Note:** The Authenticator UI component is only available with Jetpack Compose.

</Callout>

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.

Visit [Authenticator | Amplify UI for Android](https://ui.docs.amplify.aws/android/connected-components/authenticator) to get started.

### Option 2: Manually call the Authentication APIs

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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import ios1 from "/src/fragments/lib/auth/ios/getting_started/05_authenticator_c

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

import androidAuthenticator from "/src/fragments/lib/auth/android/getting_started/05_authenticatorCallout.mdx";

<Fragments fragments={{android: androidAuthenticator}} />

## Goal

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

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

import android14 from "/src/fragments/lib/auth/android/getting_started/45_authenticator.mdx";

<Fragments fragments={{android: android14}} />

## Next Steps
Congratulations! You've successfully setup AWS Cognito Auth plugin. Check out the following links to see other Amplify Auth use cases:

Expand Down

0 comments on commit 8af6ee5

Please sign in to comment.