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

feat: token aware routes with middleware #14

Merged
merged 3 commits into from
Jan 20, 2024
Merged

Conversation

EstebanBorai
Copy link
Collaborator

Adds support for Bearer tokens in server by implementing a middleware that fetches the
account using the token specified in the HTTP headers of the request as:

Authorization: Bearer <TOKEN>

@EstebanBorai EstebanBorai force-pushed the feat/account-sessions branch from ca4fac6 to 9c54609 Compare January 20, 2024 21:22
@EstebanBorai EstebanBorai marked this pull request as ready for review January 20, 2024 21:26
@EstebanBorai EstebanBorai merged commit 5f55f71 into main Jan 20, 2024
3 checks passed
@EstebanBorai EstebanBorai deleted the feat/account-sessions branch January 20, 2024 21:26
avdb13 added a commit to avdb13/commune-rs that referenced this pull request Jan 25, 2024
merge: token aware routes with middleware (commune-sh#14)
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.

1 participant