Skip to content

Commit

Permalink
docs(auth): sample for script variable client secret
Browse files Browse the repository at this point in the history
a bit of clarity as suggested by @Lxstr in #6
  • Loading branch information
AsifArmanRahman committed Mar 24, 2023
1 parent 0b2e17b commit c54fdd0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/guide/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,17 @@ used to generate tokens to sign in with social providers in

.. code-block:: python
# Get a reference to the auth service with provider secret set
# Get a reference to the auth service with provider secret file
auth = firebaseApp.auth(client_secret='client-secret-file.json')
# Reference to auth service with provider secret from env variable
client_secret_config = {
"client_id": environ.get("CLIENT_ID"),
"client_secret": environ.get("CLIENT_SECRET"),
"redirect_uris": [environ.get("REDIRECT_URI")]
}
auth = firebaseApp.auth(client_secret=client_secret_config)
..
.. code-block:: python
Expand All @@ -186,6 +195,7 @@ used to generate tokens to sign in with social providers in
Make sure you have the **social** provider enabled in your
Firebase dashboard under Authentication -> Sign In Method.


authenticate_login_with_google
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit c54fdd0

Please sign in to comment.