Skip to content

Conversation

@penx
Copy link
Contributor

@penx penx commented Oct 31, 2022

Reopening #4, remix-run/remix#4057 against remix-run/examples

Firebase example - Integration with Google Sign-in Provider

Closes: "sign-in with Google" suggestion at remix-run/remix#1811 (comment)

Adds a "Login with Google" link:

Screenshot 2022-08-24 at 15 16 57

...that takes a user to the Google's auth screen:

Screenshot 2022-08-24 at 15 17 22

 ...and then creates an account (if it doesn't yet exist) and signs them in:

Screenshot 2022-08-24 at 15 19 26

@github-actions github-actions bot added the needs-response We need a response from the original author about this issue/PR label Dec 30, 2022
@github-actions
Copy link
Contributor

This PR has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from PRs that are unactionable. Please reach out if you want to resume the work on this PR! 🙂

@github-actions github-actions bot closed this Jan 20, 2023
@penx
Copy link
Contributor Author

penx commented Jan 20, 2023

@machour @mcansh @MichaelDeBoey

happy to abandon this if it's not wanted, but I've opened this PR 3 times now (#52, #4, remix-run/remix#4057), and rebased several times on request, now github actions is telling me you're waiting for a response from me 😄

Copy link
Member

@MichaelDeBoey MichaelDeBoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@penx Please rebase this branch onto latest main & resolve conflicts and remarks

@github-actions github-actions bot removed the needs-response We need a response from the original author about this issue/PR label Jan 20, 2023
@penx penx force-pushed the firebase-auth-provider branch from ed593f3 to d2f7e3e Compare January 25, 2023 15:36
@penx penx marked this pull request as draft January 25, 2023 15:36
@penx penx marked this pull request as ready for review January 25, 2023 16:41
Co-authored-by: Michaël De Boey <[email protected]>
@penx penx requested a review from MichaelDeBoey January 25, 2023 16:42
@penx
Copy link
Contributor Author

penx commented Jan 25, 2023

@MichaelDeBoey rebased and confirmed it's all still working. Also addressed feedback and updated the docs a little.

@penx penx marked this pull request as draft January 25, 2023 16:50
Co-authored-by: Michaël De Boey <[email protected]>
@github-actions github-actions bot added the needs-response We need a response from the original author about this issue/PR label Mar 26, 2023
@github-actions
Copy link
Contributor

This PR has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from PRs that are unactionable. Please reach out if you want to resume the work on this PR! 🙂

@github-actions github-actions bot closed this Apr 16, 2023
@penx
Copy link
Contributor Author

penx commented Apr 16, 2023

@MichaelDeBoey not sure why this was closed. Are you waiting for something from?

@penx
Copy link
Contributor Author

penx commented Apr 16, 2023

Actually maybe it’s the hard coded localhost, had forgotten this needed addressing

@MichaelDeBoey
Copy link
Member

@penx This was indeed waiting for the hardcoded localhost I think

I'll re-open as I know we'll see the update in a timely manner. 😉

I'll also update the no-response workflow to give a notice before actually closing the PRs 👍

@MichaelDeBoey MichaelDeBoey reopened this Apr 16, 2023
@github-actions github-actions bot removed the needs-response We need a response from the original author about this issue/PR label Apr 16, 2023
@MichaelDeBoey MichaelDeBoey added the needs-response We need a response from the original author about this issue/PR label May 1, 2023
@penx penx marked this pull request as ready for review May 3, 2023 10:47
@penx penx requested a review from MichaelDeBoey May 3, 2023 10:47
@penx
Copy link
Contributor Author

penx commented May 3, 2023

I have removed the 2 hard coded "localhost", and calculate redirectUri instead

@github-actions github-actions bot removed the needs-response We need a response from the original author about this issue/PR label May 3, 2023
Copy link
Member

@MichaelDeBoey MichaelDeBoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small remarks


## Deploying

1. Follow the "Run against a Firebase Project" steps above if not done already
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Follow the "Run against a Firebase Project" steps above if not done already
1. Follow the "Run against a Firebase project" steps above if not done already


## Integration with Google Sign-in Provider

The "Login with Google" link will only work when running against a Firebase Project.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The "Login with Google" link will only work when running against a Firebase Project.
The "Login with Google" link will only work when running against a Firebase project.


The "Login with Google" link will only work when running against a Firebase Project.

After the steps in "Run against a Firebase Project" have been completed:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
After the steps in "Run against a Firebase Project" have been completed:
After the steps in "Run against a Firebase project" have been completed:


After the steps in "Run against a Firebase Project" have been completed:

- In the [Firebase Console](https://console.firebase.google.com), navigate to Authentication > Sign-in method > Add new provider > Google. Make a note of the client ID and secret and add them to the .env file as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- In the [Firebase Console](https://console.firebase.google.com), navigate to Authentication > Sign-in method > Add new provider > Google. Make a note of the client ID and secret and add them to the .env file as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
- In the [Firebase Console](https://console.firebase.google.com), navigate to Authentication > Sign-in method > Add new provider > Google. Make a note of the client ID and secret and add them to the `.env` file as `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET`.

}
) => {
const body = {
postBody: "id_token=" + idToken + "&providerId=" + providerId,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
postBody: "id_token=" + idToken + "&providerId=" + providerId,
postBody: `id_token=${idToken}&providerId=${providerId}`,

) => {
const body = {
postBody: "id_token=" + idToken + "&providerId=" + providerId,
requestUri: "http://localhost",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@penx Should this stay localhost? 🤔

Link,
useActionData,
useLoaderData,
useLocation,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
useLocation,

@MichaelDeBoey MichaelDeBoey added the needs-response We need a response from the original author about this issue/PR label May 6, 2023
@github-actions
Copy link
Contributor

This PR has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from PRs that are unactionable. Please reach out if you want to resume the work on this PR! 🙂

@github-actions github-actions bot closed this May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-response We need a response from the original author about this issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants