diff options
-rw-r--r-- | example/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/index.ts b/example/index.ts index 1492395..6914af0 100644 --- a/example/index.ts +++ b/example/index.ts @@ -24,6 +24,7 @@ import { import type { AttestationCredentialJSON, AuthenticatorDevice, + AssertionCredentialJSON, } from '@simplewebauthn/typescript-types'; import { LoggedInUser } from './example-server'; @@ -205,7 +206,7 @@ app.get('/generate-assertion-options', (req, res) => { }); app.post('/verify-assertion', (req, res) => { - const { body } = req; + const body: AssertionCredentialJSON = req.body; const user = inMemoryUserDeviceDB[loggedInUserId]; |