Skip to content

Commit d751527

Browse files
committed
Update 2019-03-25-authentication.md
1 parent a75cf28 commit d751527

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_drafts/2019-03-25-authentication.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ class FirebaseUIActivity : AppCompatActivity() {
2828
super.onCreate(savedInstanceState)
2929
setContentView(R.layout.activity_firebase_ui)
3030

31+
//check if user is already signed in
32+
//if not then show sign in screen
33+
3134
//add available providers
3235
val providers = arrayListOf(
3336
AuthUI.IdpConfig.EmailBuilder().build(),
3437
AuthUI.IdpConfig.PhoneBuilder().build(),
35-
AuthUI.IdpConfig.GoogleBuilder().build(),
36-
AuthUI.IdpConfig.TwitterBuilder().build())
38+
AuthUI.IdpConfig.GoogleBuilder().build())
39+
//add more like Twitter, Facebook etc
3740

3841
//start sign in screen and optional customize by logo, theme and urls
3942
val intent = AuthUI.getInstance()

0 commit comments

Comments
 (0)