getToken returns an object now