code: protected function authRoutes()
      {
          switch ($this->requestUrl) {
              case 'login':
                  // Redirect already authenticated user visiting login page
                  if ($this->user->getAuthenticated()) {
                      $this->redirectToPage($this->config["afterLogin"]);
                  }
                  break;
              case 'logout':
                  // Redirect non authenticated user to login
                  if (!$this->user->getAuthenticated()) {
                      $this->redirectToLogin();
                  }
                  $this->checkLogoutSubmission();
                  break;
          }
      }
docs: Plugin routes that are always present