Passkey-Anmeldung (WebAuthn) zusätzlich zum Passwort
- Tabelle passkeys + lib/passkeys.ts (CRUD, Counter-Replay-Schutz)
- lib/webauthn.ts: RP-Config via RP_ID/RP_ORIGIN/RP_NAME, Challenge im
httpOnly-Cookie, Wrapper um @simplewebauthn/server
- API: app/api/passkey/{register,authenticate,route}; authenticate ist
öffentlich (proxy.ts ausgenommen) und setzt bei Erfolg die Session
- Login-Button "Mit Passkey anmelden", Verwaltung im Einstellungen-Tab
- Passwort bleibt als Fallback; Version 0.1.1
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import type { ArbeitszeitEintrag } from '@/types/arbeitszeit';
|
||||
import ArbeitszeitForm from '@/components/ArbeitszeitForm';
|
||||
import ArbeitszeitList from '@/components/ArbeitszeitList';
|
||||
import Einstellungen from '@/components/Einstellungen';
|
||||
import Passkeys from '@/components/Passkeys';
|
||||
import packageJson from '@/package.json';
|
||||
|
||||
interface Props {
|
||||
@@ -143,6 +144,7 @@ export default function MainClient({ username }: Props) {
|
||||
<div className="border-2 border-gray-400 rounded-xl bg-white p-3">
|
||||
<h2 className="text-sm font-semibold text-gray-900 mb-3">Einstellungen</h2>
|
||||
<Einstellungen pause={pause} onPauseChange={setPause} />
|
||||
<Passkeys />
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user