saloonphp / saloon

🤠 Build beautiful API integrations and SDKs with Saloon
https://docs.saloon.dev
MIT License
2.09k stars 107 forks source link

Feature | Add a `NullAuthenticator` to overwrite defaultAuth #423

Closed patrickcarlohickman closed 5 months ago

patrickcarlohickman commented 5 months ago

This PR adds a NullAuthenticator class that allows a user to use the null object pattern, and provides a way to remove an authenticator that has already been set.

This has been addressed in #402 and #385.

This PR only adds a new file, so it should not have any backwards compatibility issues.

jlevers commented 5 months ago

Ah, thanks @patrickcarlohickman! I've been meaning to submit a similar PR for a few weeks now. Good stuff :)