Skip to content
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

[FR] Support Edge and Deno runtime #1801

Open
oreqizer opened this issue Jul 6, 2022 · 16 comments
Open

[FR] Support Edge and Deno runtime #1801

oreqizer opened this issue Jul 6, 2022 · 16 comments

Comments

@oreqizer
Copy link

oreqizer commented Jul 6, 2022

Is your feature request related to a problem? Please describe.

https://nextjs.org/docs/api-reference/edge-runtime

I'd like to use firebase-admin in an Edge environment and Deno. The package currently uses Node-specific APIs though, making that impossible.

Describe the solution you'd like

Would be awesome to support the Edge/Deno runtime, e.g. via firebase-admin/common.

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@lahirumaramba
Copy link
Member

We currently do not have any specific plans to support Deno or Edge runtime. Although, I would encourage you to file a feature request through https://firebase.google.com/support to create more visibility on this within the team. It will also help us gauge the interest for these feature requests. Thank you!

@lahirumaramba
Copy link
Member

Duplicate of #1307

@lahirumaramba lahirumaramba marked this as a duplicate of #1307 Jul 8, 2022
@akauppi
Copy link

akauppi commented Jul 16, 2022

@oreqizer This repo is open source. Do you think forking this repo and making firebase-admin-deno with the necessary changes is a possibility?

Disclaimer: I’m not a Deno user, and don’t suggest to contribute. It would be an interesting thing to follow, though…

@oreqizer
Copy link
Author

@akauppi it definitely would be to some extent, depending on related dependencies. out of my time capacity to gauge/attempt though

@maccman
Copy link

maccman commented Jun 24, 2023

We'd love to see nextjs edge support.

@axelvaindal
Copy link

If possible, we would like edge support as well, as firebase-admin is not working in Next.js middleware.

@Moe03
Copy link

Moe03 commented Aug 26, 2023

Hey is there any progress with this PR?

@m3hari
Copy link

m3hari commented Nov 8, 2023

Using the rest API was my workaround see the story https://m3hari.medium.com/firebase-database-using-rest-api-3b4c8982164e

@0x80
Copy link

0x80 commented Nov 8, 2023

@m3hari the admin package does more than that. For example, I'd like to decode a firebase id token and get custom claims from it.

@scottwittrock
Copy link

I'd like to do this exact same use case. Has anyone found a work around?

@m3hari the admin package does more than that. For example, I'd like to decode a firebase id token and get custom claims from it.

@m3hari
Copy link

m3hari commented Nov 12, 2023

just verifying token was my use case

@step135
Copy link

step135 commented Jan 10, 2024

What about REST API? My issue here was closed today claiming that I can use AUTH REST API to manage users. Do you agree with lahirumaramba (Firebase employee)?

@0x80
Copy link

0x80 commented Jan 11, 2024

@step135 I don't think that is true. Decoding a token I wouldn't categorize as "managing users" and looking at the list on the right side of the API reference I don't see it either: https://firebase.google.com/docs/reference/rest/auth

@jdgamble555
Copy link

The solution to this problem is "Firebase Admin Lite" which would basically have a REST API under the hood. For those who don't know, Firestore has a "lite" version, but you can't use auth or anything meaningful with it for the moment. It does, however, help with non-logged queries.

Also, you may want to vote on the request and maybe it will get more attention:

J

@JedPattersonn
Copy link

If you want to decode the auth token, I've just created a package that does this, just pass in your token and project ID and it will decode it.

Works on the edge https://www.npmjs.com/package/firebase-edge-auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests