Add authorize feature.
Change the type of result to "chan error"