File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 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
169169
170170.. code-block :: python
171171
172- # Get a reference to the auth service with provider secret set
172+ # Get a reference to the auth service with provider secret file
173173 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)
174183..
175184
176185.. code-block :: python
@@ -186,6 +195,7 @@ used to generate tokens to sign in with social providers in
186195 Make sure you have the **social ** provider enabled in your
187196 Firebase dashboard under Authentication -> Sign In Method.
188197
198+
189199authenticate_login_with_google
190200^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191201
You can’t perform that action at this time.
0 commit comments