Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Remove hook for normalizing auth token on params.
Browse files Browse the repository at this point in the history
It was only used to support passing the token via sockets and then normalizing it. It is no longer needed.
  • Loading branch information
ekryski committed Feb 15, 2016
1 parent 3758bbe commit ea25079
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
4 changes: 1 addition & 3 deletions src/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import setUserId from './set-user-id';
import toLowerCase from './to-lower-case';
import verifyToken from './verify-token';
import populateUser from './populate-user';
import normalizeAuthToken from './normalize-auth-token';

let hooks = {
hashPassword,
Expand All @@ -18,8 +17,7 @@ let hooks = {
setUserId,
toLowerCase,
verifyToken,
populateUser,
normalizeAuthToken
populateUser
};

export default hooks;
23 changes: 0 additions & 23 deletions src/hooks/normalize-auth-token.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export default function(providers) {
const app = this;
let _super = app.setup;

// Add mixin to normalize the auth token on the params
app.mixins.push(function(service){
service.before(hooks.normalizeAuthToken());
});

// REST middleware
if (app.rest) {
debug('registering REST authentication middleware');
Expand Down

0 comments on commit ea25079

Please sign in to comment.