get token from params hash