There are even unit tests that verify this method is called every time. But if authResult is a standard access token with an expiry date, shouldn't it be reusable? Implementing this is easy, but of course breaks the tests. Is there a reason the library acquires a new token every time?
The csr-validation library fetches a new access token for each request:
There are even unit tests that verify this method is called every time. But if authResult is a standard access token with an expiry date, shouldn't it be reusable? Implementing this is easy, but of course breaks the tests. Is there a reason the library acquires a new token every time?