making authorize_with_token a public method