saloonphp / saloon

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

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

Closed patrickcarlohickman closed 3 months ago

patrickcarlohickman commented 3 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 3 months ago

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