getAuthLinks = (current, noMethods, req) => {
  const links = { methods: [] };
  const state = getState();
  if (current !== "login") links.login = "/auth/login";
  if (current !== "signup" && state.getConfig("allow_signup"))
    links.signup = "/auth/signup";
  if (current !== "forgot" && state.getConfig("allow_forgot"))
    links.forgot = "/auth/forgot";
  const dest = req?.query?.dest
    ? `?dest=${encodeURIComponent(req.query.dest)}`
    : "";
  if (!noMethods)
    Object.entries(getState().auth_methods).forEach(([name, auth]) => {
      const url = auth.postUsernamePassword
        ? `javascript:$('form.login').attr('action','/auth/login-with/${name}${dest}').submit();`
        : `/auth/login-with/${name}${dest}`;
      links.methods.push({
        icon: auth.icon,
        label: auth.label,
        name,
        url,
      });
    });
  return links;
}
get Auth Links
@param {string} current
@param {boolean} noMethods
@returns {object}