142 provide logic and apis to use more than one passkey with a staff member (#163)

* Basic implementation

* Syntax fixes

* Implemented PRF for passkey administration. Updated docs, renamed confusing endpoints.

* Update src/routes/api/auth/passkeys/[passkeyId]/crypto/+server.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Removed unused param

* Merge fixes, formatting fixes, database migrations

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Hendrik
2026-01-13 18:35:42 +01:00
committed by GitHub
co-authored by Copilot
parent c552945643
commit fb3b880204
16 changed files with 2084 additions and 11 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ export const apiAuthHandle: Handle = async ({ event, resolve }) => {
user: SelectUser;
sessionId: string;
exp: Date;
passkeyId?: string;
} | null = null;
if (accessToken) {
// Verify access token with database session check
@@ -37,7 +38,7 @@ export const apiAuthHandle: Handle = async ({ event, resolve }) => {
});
}
// Add sessionId to the user object for easy access
// Add sessionId and passkeyId to the user object for easy access
event.locals.user = {
session: {
exp: sessionData.exp.valueOf(),