Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/routes/resources+/webauthn+/verify-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export async function action({ request }: ActionFunctionArgs) {
data: {
id: credential.id,
aaguid,
publicKey: Buffer.from(credential.publicKey),
publicKey: new Uint8Array(credential.publicKey),
userId: user.id,
webauthnUserId,
counter: credential.counter,
Expand Down
4 changes: 4 additions & 0 deletions app/utils/prisma.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { remember } from '@epic-web/remember'
import { PrismaBetterSQLite3 } from '@prisma/adapter-better-sqlite3'
import { PrismaClient } from '@prisma/client'
import chalk from 'chalk'
import pProps from 'p-props'
Expand All @@ -16,6 +17,9 @@ function getClient(): PrismaClient {
// that this only runs once per server restart and won't automatically be
// re-run per request like everything else is.
const client = new PrismaClient({
adapter: new PrismaBetterSQLite3({
url: process.env.DATABASE_URL!.replace('file:', ''),
}),
log: [
{ level: 'query', emit: 'event' },
{ level: 'error', emit: 'stdout' },
Expand Down
Binary file added cache.db
Binary file not shown.
Loading
Loading