Skip to content

Commit a4ba04d

Browse files
committed
Added comments to call out other AuthProviders
1 parent 781ebfe commit a4ba04d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/fragments/lib/auth/android/social_signin_web_ui/20_signin.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ For now, just add this method to the `onCreate` method of MainActivity with what
44
<Block name="Java">
55

66
```java
7+
// Replace facebook with your chosen auth provider such as google, amazon, or apple
78
Amplify.Auth.signInWithSocialWebUI(
8-
AuthProvider.facebook(),
9+
AuthProvider.facebook(),
910
this,
1011
result -> Log.i("AuthQuickstart", result.toString()),
1112
error -> Log.e("AuthQuickstart", error.toString())
@@ -16,8 +17,9 @@ Amplify.Auth.signInWithSocialWebUI(
1617
<Block name="Kotlin - Callbacks">
1718

1819
```kotlin
20+
// Replace facebook with your chosen auth provider such as google, amazon, or apple
1921
Amplify.Auth.signInWithSocialWebUI(
20-
AuthProvider.facebook(),
22+
AuthProvider.facebook(),
2123
this,
2224
{ Log.i("AuthQuickstart", "Sign in OK: $it") },
2325
{ Log.e("AuthQuickstart", "Sign in failed", it) }
@@ -29,6 +31,7 @@ Amplify.Auth.signInWithSocialWebUI(
2931

3032
```kotlin
3133
try {
34+
// Replace facebook with your chosen auth provider such as google, amazon, or apple
3235
val result = Amplify.Auth.signInWithSocialWebUI(AuthProvider.facebook(), this)
3336
Log.i("AuthQuickstart", "Sign in OK: $result")
3437
} catch (error: AuthException) {
@@ -40,6 +43,7 @@ try {
4043
<Block name="RxJava">
4144

4245
```java
46+
// Replace facebook with your chosen auth provider such as google, amazon, or apple
4347
RxAmplify.Auth.signInWithSocialWebUI(AuthProvider.facebook(), this)
4448
.subscribe(
4549
result -> Log.i("AuthQuickstart", result.toString()),

0 commit comments

Comments
 (0)