mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Remove duplicate function
no issue - remove duplicate registerSuccessfulBearerStrategy Thanks to @jonblack for finding that!
This commit is contained in:
parent
454f456adf
commit
b2ede23c4a
1 changed files with 0 additions and 10 deletions
|
@ -31,16 +31,6 @@ function registerUnsuccessfulBearerStrategy() {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerSuccessfulBearerStrategy() {
|
|
||||||
// register fake BearerStrategy which always authenticates
|
|
||||||
passport.use(new BearerStrategy(
|
|
||||||
function strategy(accessToken, done) {
|
|
||||||
accessToken.should.eql(token);
|
|
||||||
return done(null, user, info);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('authenticate', function () {
|
describe('authenticate', function () {
|
||||||
var res, req, next, sandbox;
|
var res, req, next, sandbox;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue