- Issue created by @brianperry
- Status changed to Active
7 months ago 12:02am 6 May 2024
When creating an instance of the class, specify if authentication should be used. Auth will be used by default if an authentication option is provided. (Note: This has already been implemented)
On a per method basis, it should be possible to override this in order to specify if authentication should or should not be used.
* Create an instance of the GraphqlClient with an authentication method configured.
* All subsequent fetch requests will use this authentication method with no way to override and make an anonymous request.
* The GraphqlClient GetOptions interface should accept a new disableAuthentication option.
* If disableAuthentication is true, the fetch request should not use authentication headers
* Implement changes.
* Update docs.
* Add test coverage.
* JsonApiClient GetOptions interface will accept a new disableAuthentication option
Active
Code