cleaner implementation of jwt auth processing using promises CLUB-560