@@ -4,8 +4,9 @@ For now, just add this method to the `onCreate` method of MainActivity with what
4
4
<Block name = " Java" >
5
5
6
6
``` java
7
+ // Replace facebook with your chosen auth provider such as google, amazon, or apple
7
8
Amplify . Auth . signInWithSocialWebUI(
8
- AuthProvider . facebook(),
9
+ AuthProvider . facebook(),
9
10
this ,
10
11
result - > Log . i(" AuthQuickstart" , result. toString()),
11
12
error - > Log . e(" AuthQuickstart" , error. toString())
@@ -16,8 +17,9 @@ Amplify.Auth.signInWithSocialWebUI(
16
17
<Block name = " Kotlin - Callbacks" >
17
18
18
19
``` kotlin
20
+ // Replace facebook with your chosen auth provider such as google, amazon, or apple
19
21
Amplify .Auth .signInWithSocialWebUI(
20
- AuthProvider .facebook(),
22
+ AuthProvider .facebook(),
21
23
this ,
22
24
{ Log .i(" AuthQuickstart" , " Sign in OK: $it " ) },
23
25
{ Log .e(" AuthQuickstart" , " Sign in failed" , it) }
@@ -29,6 +31,7 @@ Amplify.Auth.signInWithSocialWebUI(
29
31
30
32
``` kotlin
31
33
try {
34
+ // Replace facebook with your chosen auth provider such as google, amazon, or apple
32
35
val result = Amplify .Auth .signInWithSocialWebUI(AuthProvider .facebook(), this )
33
36
Log .i(" AuthQuickstart" , " Sign in OK: $result " )
34
37
} catch (error: AuthException ) {
40
43
<Block name = " RxJava" >
41
44
42
45
``` java
46
+ // Replace facebook with your chosen auth provider such as google, amazon, or apple
43
47
RxAmplify . Auth . signInWithSocialWebUI(AuthProvider . facebook(), this )
44
48
.subscribe(
45
49
result - > Log . i(" AuthQuickstart" , result. toString()),
0 commit comments