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

Support a server-side, API-only environment #502

Closed
kmjennison opened this issue Jul 21, 2022 · 1 comment
Closed

Support a server-side, API-only environment #502

kmjennison opened this issue Jul 21, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kmjennison
Copy link
Contributor

kmjennison commented Jul 21, 2022

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

Developers may want to run next-firebase-auth on the server for some API methods only, never intending to render React DOM or initialize on the client. This is particularly relevant for #223, where it's likely developers will sometimes rely on auth cookies in a backend service separate from the service rendering Next.js pages.

Describe the solution you'd like and how you'd implement it

We should support the minimal dependencies and config settings required for non-React, server-side only functionality.

We began this work in #493, which made some dependencies optional. Additional work is needed to handle exceptions when requireing missing optional dependencies; ex: Cannot find module 'react' from 'index.node.js'.

This may overlap with work required for #207.

Is this a breaking change?
No

Describe alternatives you've considered

The alternative is to always require installing dependencies. That's an acceptable fallback if it's too much work to implement these changes.

@kmjennison
Copy link
Contributor Author

Closed in #512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant