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

While actingAsClient add a bearer token #1703

Closed
SuperDJ opened this issue Dec 20, 2023 · 2 comments
Closed

While actingAsClient add a bearer token #1703

SuperDJ opened this issue Dec 20, 2023 · 2 comments

Comments

@SuperDJ
Copy link

SuperDJ commented Dec 20, 2023

When testing I ran into an issue with the actingAsClient method not setting a bearer token. The issue is that $request->bearerToken() is always empty when using actingAsClient. I think automatically setting a bearer token when using actingAsClient could help. If it shouldn't be set automatically perhaps it can be set with a parameter. Either by providing a bearer token or a boolean.

Copy link

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

@driesvints
Copy link
Member

Thank. Feel free to attempt a PR 👍

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

No branches or pull requests

3 participants