decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
445 stars 133 forks source link

[proposal] Make headers call for AgentRestClient dynamic #1314

Closed cre8 closed 10 months ago

cre8 commented 10 months ago

What issue is this PR fixing

Fixes #1313

What is being changed

The AgentRestClient constructor is able to handle functions calls for the headers. This allows to pass dynamic values like an access token that needs to be updated frequently.

Quality

Check all that apply:

codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ac1b620) 85.47% compared to head (3b43ea3) 85.47%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #1314 +/- ## ======================================= Coverage 85.47% 85.47% ======================================= Files 170 170 Lines 18950 18952 +2 Branches 2115 2116 +1 ======================================= + Hits 16197 16199 +2 Misses 2753 2753 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.