File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,17 @@ used to generate tokens to sign in with social providers in
169
169
170
170
.. code-block :: python
171
171
172
- # Get a reference to the auth service with provider secret set
172
+ # Get a reference to the auth service with provider secret file
173
173
auth = firebaseApp.auth(client_secret = ' client-secret-file.json' )
174
+
175
+ # Reference to auth service with provider secret from env variable
176
+ client_secret_config = {
177
+ " client_id" : environ.get(" CLIENT_ID" ),
178
+ " client_secret" : environ.get(" CLIENT_SECRET" ),
179
+ " redirect_uris" : [environ.get(" REDIRECT_URI" )]
180
+ }
181
+
182
+ auth = firebaseApp.auth(client_secret = client_secret_config)
174
183
..
175
184
176
185
.. code-block :: python
@@ -186,6 +195,7 @@ used to generate tokens to sign in with social providers in
186
195
Make sure you have the **social ** provider enabled in your
187
196
Firebase dashboard under Authentication -> Sign In Method.
188
197
198
+
189
199
authenticate_login_with_google
190
200
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191
201
You can’t perform that action at this time.
0 commit comments