Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

562 B
Raw Blame
'use client';

import { useTranslations } from 'next-intl';

// Sign-in method labels. better-auth stores the password provider as "credential";
// anything else is a social or passkey provider and keeps its own id, which the
// messages may not carry — such a provider is listed under its id.
export function useProviderList() {
  const t = useTranslations('god.providers');

  return (ids: string[]) =>
    ids
      .map((id) => {
        const key = id as Parameters<typeof t.has>[0];
        return t.has(key) ? t(key) : id;
      })
      .join(', ');
}