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

Add bearer token support #1177

Merged
merged 2 commits into from
Feb 16, 2017
Merged

Add bearer token support #1177

merged 2 commits into from
Feb 16, 2017

Conversation

elisherer
Copy link
Contributor

This would add bearer token support to the auth method (both for client and for node).

.auth(accessToken, { type: 'bearer' })

Notice I made pass optional since bearer authorization doesn't need a 2nd argument.

@kornelski
Copy link
Contributor

Thanks for the pull request.

@focusaurus what do you think about adding this?

@focusaurus
Copy link
Contributor

I'm OK with it, as long as people don't interpret it to mean some kind of deep OAuth 2 support.

@kornelski kornelski merged commit 4723176 into ladjs:master Feb 16, 2017
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.

3 participants