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

Set options via Environment Variables #951

Open
brandon93s opened this issue Dec 20, 2023 · 0 comments
Open

Set options via Environment Variables #951

brandon93s opened this issue Dec 20, 2023 · 0 comments

Comments

@brandon93s
Copy link

Describe the problem you'd like to have solved

Ability to set config options (e.g., clockTolerance), via environment variables to work-around libraries which leverage jsonwebtoken internally but are not exposing config options to the end-user.

Describe the ideal solution

opts.clockTolerance ?? process.env.clockTolerance etc.

Alternatives and current work-arounds

No current workaround, outside of a custom patch. An alternative would be a major upstream refactor in firebase (and others) to properly allow for option consumption. This would be preferable, in an ideal world.

Additional context

Trying to account for minor clock skew between client mobile & IoT devices through clockTolerance.

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

No branches or pull requests

1 participant