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

parse authorization header into auth steps #10

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

kevinschweikert
Copy link
Contributor

@kevinschweikert kevinschweikert commented Jun 16, 2024

This would (for now only) parse the Bearer token in the authorization header into the Req.Steps.auth mechanic. But honestly, the more i think about it, the more i think, this isn't necessary, because it's already a header and all the Req.Step does is put it in the header again.
But i wanted to see, how you think about it. Feel free to close the PR if this is not needed.

@derekkraan
Copy link
Owner

I think it makes sense to stick close to the canonical way of doing things, and Req does encourage using the provided steps to build your requests.

So I am in favour of this PR.

@derekkraan derekkraan merged commit d325985 into derekkraan:main Jun 17, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants