mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-28 03:34:50 +02:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user