We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa777b commit 0fc7c6eCopy full SHA for 0fc7c6e
types/index.test-d.ts
@@ -37,7 +37,7 @@ async function run () {
37
38
fastify.addHook('onRequest', fastify.csrfProtection)
39
}
40
-run()
+await run()
41
42
fastify.register(FastifyCsrfProtection, { csrfOpts: { algorithm: 'sha1', hmacKey: 'hmac' } })
43
expectError(fastify.register(FastifyCsrfProtection, { csrfOpts: { algorithm: 1 } }))
0 commit comments