refactored isAuthenticated and createToken functions
refactored isAuthenticated and createToken functions

kampta/instaclone,memezilla/instagram-hackhands,dongguangming/angularjs-satellizer-nodejs-mongodb,pcnicklaus/instagrammmin,kgao/instagram-hackhands,kampta/instaclone,dongguangming/angularjs-satellizer-nodejs-mongodb,kgao/instagram-hackhands,sahat/instagram-hackhands,LucasFrecia/instagram-hackhands,filipemerker/instagram-hackhands,memezilla/instagram-hackhands,RAGOpoR/instagram-hackhands,pcnicklaus/instagrammmin,filipemerker/instagram-hackhands,RAGOpoR/instagram-hackhands,LucasFrecia/instagram-hackhands