Skip to content

Set options via Environment Variables #951

Open
@brandon93s

Description

@brandon93s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions