Remove PREFIX_DEV for developer tokens

This commit is contained in:
Johannes Zellner
2016-06-03 12:52:10 +02:00
parent f27ba04a00
commit 615f875169
3 changed files with 2 additions and 6 deletions

View File

@@ -103,10 +103,7 @@ function initialize(callback) {
var info = { scope: token.scope };
var tokenType;
if (token.identifier.indexOf(tokendb.PREFIX_DEV) === 0) {
token.identifier = token.identifier.slice(tokendb.PREFIX_DEV.length);
tokenType = tokendb.TYPE_DEV;
} else if (token.identifier.indexOf(tokendb.PREFIX_USER) === 0) {
if (token.identifier.indexOf(tokendb.PREFIX_USER) === 0) {
tokenType = tokendb.TYPE_USER;
token.identifier = token.identifier.slice(tokendb.PREFIX_USER.length);
} else {