Deprecated APIBase.exit_if_not_authenticated(), replacing with Session::reauthenticate().