Enhance authentication flow with username support and social login placeholders

- Updated sign-in and sign-up pages to allow users to log in with either email or username.
- Added social login options for Google and Apple, currently implemented as placeholders.
- Improved error handling with localized messages for authentication failures.
- Refactored input fields and validation logic to enhance user experience and accessibility.
This commit is contained in:
Matthias
2026-04-02 23:10:40 +02:00
parent 9fa0b8452e
commit f5f9753288
5 changed files with 379 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
import { createAuthClient } from "better-auth/react";
import { magicLinkClient } from "better-auth/client/plugins";
import { magicLinkClient, usernameClient } from "better-auth/client/plugins";
import { convexClient } from "@convex-dev/better-auth/client/plugins";
import { polarClient } from "@polar-sh/better-auth/client";
// Next.js: kein crossDomainClient nötig (same-origin via API Route Proxy)
export const authClient = createAuthClient({
plugins: [magicLinkClient(), convexClient(), polarClient()],
plugins: [magicLinkClient(), usernameClient(), convexClient(), polarClient()],
});