Refactor deployment script to handle symlinking of public data conditionally based on git tracking status, improving error handling for uncommitted changes. Update PM2 configuration to directly start the Node server for Nuxt 4 production builds in both harheimertc.config.cjs and harheimertc.simple.cjs. Modify user ID handling in registration options to use Uint8Array for compatibility with @simplewebauthn/server.
This commit is contained in:
@@ -31,7 +31,8 @@ export default defineEventHandler(async (event) => {
|
||||
const options = await generateRegistrationOptions({
|
||||
rpName,
|
||||
rpID: rpId,
|
||||
userID: String(user.id),
|
||||
// @simplewebauthn/server erwartet inzwischen Uint8Array/Buffer statt String
|
||||
userID: new TextEncoder().encode(String(user.id)),
|
||||
userName: user.email,
|
||||
// Keine Attestation-Daten speichern
|
||||
attestationType: 'none',
|
||||
|
||||
Reference in New Issue
Block a user