-
Notifications
You must be signed in to change notification settings - Fork 105
Fix Google Login + Place picker links + Referrals #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2c0d2df
added ref link to create users collection
pinkeshmars 380c768
fix links in place picker widget
pinkeshmars 5e90be9
Update referral images
pinkeshmars d27eaec
Merge branch 'main' of https://github.com/FlutterFlow/flutterflow-doc…
pinkeshmars 549652b
Address review comments
pinkeshmars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -23,8 +23,7 @@ Before getting started with this section: | |||||||||
|
||||||||||
## Enable Google Sign-in Provider in Firebase | ||||||||||
|
||||||||||
- Open the Firebase Console and click on Authentication | ||||||||||
- Follow the steps to enable Google Sign in for your Firebase project | ||||||||||
Open the **Firebase Console**, click on **Authentication** and then follow the steps below to enable Google Sign in for your Firebase project. | ||||||||||
|
||||||||||
<iframe src="https://demo.arcade.software/I50vTFEEyhXfU82yLick?embed&show_copy_link=true" title="EcommerceFlow - Authentication - Sign-in method - Firebase console" frameborder="0" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="clipboard-write" width="100%" height="600"></iframe> | ||||||||||
|
||||||||||
|
@@ -37,21 +36,17 @@ You can create your own or use the one from page templates. | |||||||||
|
||||||||||
### Add Login Action | ||||||||||
|
||||||||||
- On your Google Login button, select **Actions** from the properties panel (the | ||||||||||
right menu) and select Add Action. | ||||||||||
- Search and select the Log In (under **Backend/Database > Firebase | ||||||||||
1. On your Google Login button, select **Actions** from the properties panel (the | ||||||||||
right menu) and select **Add Action**. | ||||||||||
2. Search and select the Log In (under **Backend/Database > Firebase | ||||||||||
Authentication**) action. | ||||||||||
- Set Auth Provider to Google. | ||||||||||
3. Set **Auth Provider** to **Google**. | ||||||||||
4. Enable **Create User Document** and set the **Collection** to **users**. After successful login, this will insert the user's details, such as email, name, and photo, into the *users* collection. If you haven’t already, see how to [create *users* collection](auth-initial-setup.md#creating-the-users-collection). **Note** that, If a user already exists, it won't add details again. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||||||
|
||||||||||
<iframe src="https://demo.arcade.software/CBVoec46awMc3yNGLuVJ?embed&show_copy_link=true" title="EcommerceFlow - FlutterFlow" frameborder="0" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="clipboard-write" width="100%" height="600"></iframe> | ||||||||||
|
||||||||||
- Enable the **Create User Document** and set the **Collection** to **users**. | ||||||||||
After successful login, this will insert the user's account details, such as | ||||||||||
email, | ||||||||||
name, and photo, into the 'users' collection. If a user already exists, it | ||||||||||
won't add details again. | ||||||||||
|
||||||||||
:::info | ||||||||||
:::tip | ||||||||||
To let users log out of your app, you can use the [**Logout**](auth-actions.md#logout-action) action. | ||||||||||
::: | ||||||||||
|
||||||||||
|
@@ -69,29 +64,29 @@ To let users log out of your app, you can use the [**Logout**](auth-actions.md#l | |||||||||
|
||||||||||
2. To add in Firebase console: | ||||||||||
|
||||||||||
- Open the Firebase console and click on Authentication and select the | ||||||||||
1. Open the Firebase console and click on Authentication and select the | ||||||||||
Setting tab. | ||||||||||
|
||||||||||
- Select **Authorized domains** from the left side menu. | ||||||||||
2. Select **Authorized domains** from the left side menu. | ||||||||||
|
||||||||||
- Click **Add domain**. | ||||||||||
3. Click **Add domain**. | ||||||||||
|
||||||||||
3. To add in Google cloud console: | ||||||||||
|
||||||||||
- Head over to | ||||||||||
1. Head over to | ||||||||||
your [Project Credentials](https://console.cloud.google.com/apis/credentials?project=_) page. | ||||||||||
|
||||||||||
- Ensure you are on the correct project. In our case, we are using the | ||||||||||
2. Ensure you are on the correct project. In our case, we are using the | ||||||||||
[EcommerceFlow demo project](https://bit.ly/ff-docs-demo-v1), it will be different for you. | ||||||||||
|
||||||||||
 | ||||||||||
 | ||||||||||
|
||||||||||
- Under the '**OAuth 2.0 Client IDs**', select '**Web client** (auto created by | ||||||||||
3. Under the '**OAuth 2.0 Client IDs**', select '**Web client** (auto created by | ||||||||||
Google Service)'. | ||||||||||
|
||||||||||
- Under the '**Authorized JavaScript origins**', click ADD URI and add both the | ||||||||||
4. Under the '**Authorized JavaScript origins**', click ADD URI and add both the | ||||||||||
URL. | ||||||||||
- Similarly, under the '**Authorized redirect URIs**', click ADD URI, add both | ||||||||||
5. Similarly, under the '**Authorized redirect URIs**', click ADD URI, add both | ||||||||||
the URL and append '/__/auth/handler' at the end. | ||||||||||
|
||||||||||
<iframe src="https://www.loom.com/embed/efd5b99b858d4de8bca55452c6e1d20c" frameborder="0" | ||||||||||
|
@@ -112,6 +107,6 @@ allowFullScreen style={{ width: '100%', height: '600px' }}></iframe> | |||||||||
### Verify user created in Firebase Dashboard | ||||||||||
|
||||||||||
To confirm the successful integration of Google authentication and the creation of users, navigate | ||||||||||
to your Firebase project > Authentication > Users and check the user entries. | ||||||||||
to your **Firebase project > Authentication > Users** and check the entries. | ||||||||||
|
||||||||||
 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shouldnt use the link with beta, may confuse users, please redo the screenshots from app.ff.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.