Change dev api and fix is_authorized/0