Skip to content

Commit 61b78f1

Browse files
docs: get headers to match ios and web platforms
1 parent 974efc1 commit 61b78f1

1 file changed

Lines changed: 53 additions & 55 deletions

File tree

GETTING_STARTED.md

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
}
3535
```
3636

37-
## Provider configuration
37+
## Set up sign-in methods
3838

3939
Some providers need additional setup before you can sign users in:
4040
- [Sign in with Google](https://firebase.google.com/docs/auth/android/google-signin)
@@ -45,10 +45,61 @@ Some providers need additional setup before you can sign users in:
4545
- [Sign in with Microsoft](https://firebase.google.com/docs/auth/android/microsoft-oauth)
4646
- [Sign in with Yahoo](https://firebase.google.com/docs/auth/android/yahoo-oauth)
4747

48-
### Providers
48+
### Other OAuth providers
4949

5050
Apple, GitHub, Microsoft, Yahoo, Twitter and custom OAuth providers are configured in Firebase Authentication. Most of them do not require extra Android-specific resources.
5151

52+
Choose the providers you want inside `authUIConfiguration`:
53+
54+
```kotlin
55+
val configuration = authUIConfiguration {
56+
context = applicationContext
57+
providers {
58+
provider(AuthProvider.Email())
59+
provider(
60+
AuthProvider.Phone(
61+
defaultCountryCode = "US",
62+
)
63+
)
64+
provider(
65+
AuthProvider.Google(
66+
scopes = listOf("email"),
67+
serverClientId = null,
68+
)
69+
)
70+
provider(AuthProvider.Facebook())
71+
}
72+
}
73+
```
74+
75+
### Email link sign-in
76+
77+
Email link sign-in now lives in the email provider configuration:
78+
79+
```kotlin
80+
val configuration = authUIConfiguration {
81+
context = applicationContext
82+
providers {
83+
provider(
84+
AuthProvider.Email(
85+
isEmailLinkSignInEnabled = true,
86+
emailLinkActionCodeSettings = actionCodeSettings {
87+
url = "https://example.com/auth"
88+
handleCodeInApp = true
89+
setAndroidPackageName(
90+
"com.example.app",
91+
true,
92+
null,
93+
)
94+
},
95+
)
96+
)
97+
}
98+
}
99+
```
100+
101+
For the full deep-link handling flow, see `auth/README.md`.
102+
52103
## Sign in
53104

54105
Create an `AuthUIConfiguration`, then show `FirebaseAuthScreen`.
@@ -108,59 +159,6 @@ This gives you a complete authentication flow with:
108159
- Credential Manager support.
109160
- Error handling through direct callbacks.
110161

111-
## Configure providers
112-
113-
Choose the providers you want inside `authUIConfiguration`:
114-
115-
```kotlin
116-
val configuration = authUIConfiguration {
117-
context = applicationContext
118-
providers {
119-
provider(AuthProvider.Email())
120-
provider(
121-
AuthProvider.Phone(
122-
defaultCountryCode = "US",
123-
)
124-
)
125-
provider(
126-
AuthProvider.Google(
127-
scopes = listOf("email"),
128-
serverClientId = null,
129-
)
130-
)
131-
provider(AuthProvider.Facebook())
132-
}
133-
}
134-
```
135-
136-
### Email link sign-in
137-
138-
Email link sign-in now lives in the email provider configuration:
139-
140-
```kotlin
141-
val configuration = authUIConfiguration {
142-
context = applicationContext
143-
providers {
144-
provider(
145-
AuthProvider.Email(
146-
isEmailLinkSignInEnabled = true,
147-
emailLinkActionCodeSettings = actionCodeSettings {
148-
url = "https://example.com/auth"
149-
handleCodeInApp = true
150-
setAndroidPackageName(
151-
"com.example.app",
152-
true,
153-
null,
154-
)
155-
},
156-
)
157-
)
158-
}
159-
}
160-
```
161-
162-
For the full deep-link handling flow, see `auth/README.md`.
163-
164162
## Sign out
165163

166164
FirebaseUI Auth provides convenience methods for sign-out and account deletion:

0 commit comments

Comments
 (0)