remove all codes about auth code in resource.go