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
+36-5
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,7 @@ Pre-lit Firebase authentication. It provides a set of convenient utilities and w
28
28
29
29
See the [example](example/) project to get up and running fast.
30
30
31
-
## Usage
32
-
The two most important widgets are
33
-
-`LitAuthInit` - which initializes the package and exposes the services that will be used in your application.
34
-
-`LitAuth` - which renders the UI (forms, buttons and dialogs).
31
+
## Platform Configuration
35
32
36
33
### Android integration
37
34
@@ -65,12 +62,46 @@ Otherwise you will not be able to authenticate.
65
62
66
63
### Web integration
67
64
68
-
In addition to the `firebase_auth` dependency, you'll need to modify the `web/index.html` of your app following the Firebase setup instructions:
65
+
You'll need to modify the `web/index.html` of your app following the Firebase setup instructions:
69
66
70
67
*[Add Firebase to your JavaScript project](https://firebase.google.com/docs/web/setup#from-the-cdn).
71
68
72
69
Read more in the [`firebase_auth_web` README](https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_auth/firebase_auth_web/README.md).
73
70
71
+
Below is an example of a Flutter Web `index.html` with Firebase Auth enabled:
-`LitAuthInit` - which initializes the package and exposes the services that will be used in your application.
103
+
-`LitAuth` - which renders the UI (forms, buttons and dialogs).
104
+
74
105
### Lit Firebase Initialization
75
106
First, you need to initialize the package with `LitAuthInit`. This should be at the root of your application. Above `MaterialApp`/`CupertinoApp`, and above any widgets that want to access authentication functionality.
0 commit comments