()
| 5 | import { auth } from "@/auth"; |
| 6 | |
| 7 | export default async function SettingsPage() { |
| 8 | const session = await auth(); |
| 9 | if (!session) { |
| 10 | return redirect(`/`); |
| 11 | } |
| 12 | |
| 13 | const groups = await getSidebarNavGroups(); |
| 14 | if (isServiceError(groups)) { |
| 15 | throw new ServiceErrorException(groups); |
| 16 | } |
| 17 | return redirect(groups[0].items[0].href); |
| 18 | } |
nothing calls this directly
no test coverage detected