Skip to content

Commit e84a359

Browse files
docs(auth): guide for sign in with facebook
1 parent 0bcead3 commit e84a359

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/guide/authentication.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,28 @@ with **Google** preset as the provider to use.
167167
your Firebase dashboard under Authentication -> Sign In Method.
168168

169169

170+
authenticate_login_with_facebook
171+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172+
173+
This method is actually an reference to
174+
:ref:`create_authentication_uri<guide/authentication:create_authentication_uri>`
175+
with **Facebook** preset as the provider to use.
176+
177+
178+
.. code-block:: python
179+
180+
# Example usage with Flask
181+
@auth.route('/login/facebook')
182+
def login_google():
183+
return redirect(auth.authenticate_login_with_facebook())
184+
..
185+
186+
.. note::
187+
Make sure you have the **Google Sign In** provider enabled in
188+
your Firebase dashboard under Authentication -> Sign In Method.
189+
190+
191+
170192
sign_in_with_oauth_credential
171193
-----------------------------
172194

0 commit comments

Comments
 (0)