Skip to content

Conversation

@jsellam
Copy link
Contributor

@jsellam jsellam commented Dec 30, 2022

NOTE:

  • It's a good idea to open an issue first to discuss potential changes.
  • Please make sure that you are NOT opening a PR to fix a potential security vulnerability. Instead, please follow the Security guidelines to disclose the issue to us confidentially.

☕️ Reasoning

Firebase adapter can't be used with an already initialized firebase app.

Before initializing a new app, we search if an app with the same name has been initialized

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

[[Please scout and link issues that might be solved by this PR.]

#5029
#4927

Fixes: INSERT_ISSUE_LINK_HERE

📌 Resources

@jsellam jsellam requested a review from ndom91 as a code owner December 30, 2022 10:30
@vercel
Copy link

vercel bot commented Dec 30, 2022

Someone is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 0:38AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
next-auth-docs ⬜️ Ignored (Inspect) Jan 25, 2023 at 0:38AM (UTC)

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters firebase @auth/firebase-adapter labels Dec 30, 2022
@ndom91 ndom91 changed the title 🐛 Fix already initialized firebase app fix(adapters): allow already initialized firebase app 🐛 Dec 30, 2022
@ndom91 ndom91 changed the title fix(adapters): allow already initialized firebase app 🐛 fix(adapters): allow already initialized firebase app 🐛 Dec 30, 2022
@ndom91
Copy link
Member

ndom91 commented Dec 30, 2022

LGTM, thanks 🥳

Can we merge this? @ThangHuuVu @balazsorban44

@jsellam
Copy link
Contributor Author

jsellam commented Jan 9, 2023

Someone is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Does I need to do something ?

Copy link
Member

@ThangHuuVu ThangHuuVu left a comment

Choose a reason for hiding this comment

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

LGTM!

@balazsorban44
Copy link
Member

Heads up, this will be superseded by #6225 (incorporating this change too!)

balazsorban44 pushed a commit that referenced this pull request Feb 5, 2023
Co-authored-by: Balázs Orbán <[email protected]>
fixes #5049
closes #6230
closes #5449
closes #5055
fixes #4927

BREAKING CHANGE:
The adapter now expects `firebase-admin` instead of the `firebase` package and also supports either passing a config object or a firestore instance.
balazsorban44 pushed a commit that referenced this pull request Feb 5, 2023
Co-authored-by: Balázs Orbán <[email protected]>
fixes #5049
closes #6230
closes #5449
closes #5055
fixes #4927

BREAKING CHANGE:
The adapter now expects `firebase-admin` instead of the `firebase` package and also supports either passing a config object or a firestore instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adapters Changes related to the core code concerning database adapters firebase @auth/firebase-adapter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants