Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined class 'HeaderAuthenticator' #356

Closed
ahajicek07 opened this issue Dec 23, 2023 · 4 comments
Closed

Undefined class 'HeaderAuthenticator' #356

ahajicek07 opened this issue Dec 23, 2023 · 4 comments

Comments

@ahajicek07
Copy link

I have Saloon V3 installed.

When I try to:
use Saloon\Http\Auth\HeaderAuthenticator;

It says it is undefined and doesn't exist.

I was following your documentation here:
https://docs.saloon.dev/the-basics/authentication#header-auth

And when I tried to implement that code, It says the HeaderAuthenticator doesn't exist, I updated all my composer packages and it didn't help. I'm on the latest version of saloon.

@Sammyjo20
Copy link
Collaborator

Hey @ahajicek07!

Are you on the latest minor version of Saloon? The HeaderAuthenticator was added from version 3.1. Make sure your composer.json is referencing ^3.1 and the write composer update saloonphp/saloon.

Hope that helps!

@ahajicek07
Copy link
Author

@Sammyjo20 Thank you so much. That fixed it.

My Composer.json file had to be updated.

Sorry, I'm a new developer, so while this sounded very trivial, I couldn't figure it out.

Thanks again, friend. Merry Christmas!

@ahajicek07
Copy link
Author

Problem solved.

@Sammyjo20
Copy link
Collaborator

Not a problem at all, @ahajicek07 - Merry Christmas to you too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants