You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# FirebaseUI React Components
2
2
3
-
FirebaseUI React Components provides a React Wrapper on top of the [Firebase UI Web library](https://github.com/firebase/firebaseui-web/) and notably Firebase UI Auth.
3
+
FirebaseUI React Components provides React Wrappers on top of the [Firebase UI Web library](https://github.com/firebase/firebaseui-web/) and notably Firebase UI Auth.
4
4
5
5
FirebaseUI Auth provides a drop-in auth solution that handles the UI flows for signing in users with email addresses and passwords, and Identity Provider Sign In using Google, Facebook and others. It is built on top of Firebase Auth.
6
6
@@ -50,7 +50,7 @@ firebase.initializeApp(config);
50
50
constuiConfig= {
51
51
// Popup signin flow rather than redirect flow.
52
52
signInFlow:'popup',
53
-
// Redirect to /signedIn after sign in is successful. Alternatively you can use provide a callbacks.signInSuccess function.
53
+
// Redirect to /signedIn after sign in is successful. Alternatively you can provide a callbacks.signInSuccess function.
54
54
signInSuccessUrl:'/signedIn',
55
55
// We will display Google and Facebook as auth providers.
@@ -134,7 +139,7 @@ class SignInScreen extends React.Component {
134
139
The `FirebaseAuth` component needs a global CSS to get proper styling. The CSS is already import within `FirebaseAuth`.
135
140
If you are using webpack you'll need to add [CSS loaders](https://github.com/webpack-contrib/css-loader):
136
141
137
-
```json
142
+
```js
138
143
{
139
144
module: {
140
145
rules: [
@@ -151,7 +156,7 @@ If you are using webpack you'll need to add [CSS loaders](https://github.com/web
151
156
152
157
If you are using [`ExtractTextPlugin`](https://github.com/webpack-contrib/extract-text-webpack-plugin) to extract a CSS file from the required CSS files you would typically use:
153
158
154
-
```json
159
+
```js
155
160
{
156
161
plugins: [newExtractTextPlugin('./bundle.css')],
157
162
module: {
@@ -173,7 +178,7 @@ If you are using [`ExtractTextPlugin`](https://github.com/webpack-contrib/extrac
173
178
174
179
If you are using CSS modules in your app you need to handle the CSS files in `/node_modules/` in a separate loader so that they are imported as global CSS files and not modules. Your setup could look like:
175
180
176
-
```json
181
+
```js
177
182
{
178
183
plugins: [newExtractTextPlugin('./bundle.css')],
179
184
module: {
@@ -227,12 +232,11 @@ If you would like to see an example of styling, have a look at the [example app]
227
232
228
233
## Using multiple instances
229
234
230
-
In the rare case where you would need to load multiple instances of `FirebaseAuth` at the same time you need to pass them a different ID using the `elementId` attribute. For instance:
235
+
In the case where you would need to load multiple instances of `FirebaseAuth` at the same time you need to set them up with a different ID using the `elementId` attribute. For instance:
0 commit comments