Open sahroshan opened 1 month ago
Hello @sahroshan,
Thank you reporting and using Localauth0!
We already have an open issue #27 and we'll take care of this as soon as possible
Ehi @sahroshan , today we merged this PR. Before the actual release would you like to be our beta tester for this change?
Thank you for this project.
Description
The project currently uses
localauth0.toml
to configure tokens or responses. This static configuration file can contain custom claims, which are included in the generated tokens. However, there is no way to dynamically update this configuration to test different scenarios, such as generating tokens without certain claims for fail condition testing.Problem
To effectively use this project in unit testing, the ability to generate tokens with various configurations on-the-fly is needed. For example, an application may require custom claims like user_email. Currently, once this claim is configured in
localauth0.toml
, it cannot be easily excluded or modified for testing different conditions, including negative test cases.