removed unused dependencies and added token parser from jwt to replace cookies for websockets