converts authToken into an object