Skip to content

Commit

Permalink
fix(strategy): access token passed in headers instead of query string
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Sep 13, 2016
1 parent b4acc3e commit 0ce9bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OAuth2Strategy, InternalOAuthError } from 'passport-oauth';
import {OAuth2Strategy, InternalOAuthError} from 'passport-oauth';

/**
* `Strategy` constructor.
Expand Down
4 changes: 2 additions & 2 deletions test/unit/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chai, { assert } from 'chai';
import chai, {assert} from 'chai';
import sinon from 'sinon';
import SoundCloudTokenStrategy from '../../src/index';
import fakeProfile from '../fixtures/profile';
Expand All @@ -20,7 +20,7 @@ describe('SoundCloudTokenStrategy:init', () => {
let strategy = new SoundCloudTokenStrategy(STRATEGY_CONFIG, BLANK_FUNCTION);

assert.equal(strategy.name, 'soundcloud-token');
assert(strategy._oauth2._useAuthorizationHeaderForGET);
assert.notOk(strategy._oauth2._useAuthorizationHeaderForGET);
});

it('Should properly throw error on empty options', () => {
Expand Down

0 comments on commit 0ce9bc1

Please sign in to comment.