Skip to content

Commit

Permalink
feat(authentication): removes double check for undefined turnstile key
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMi committed Mar 6, 2023
1 parent 3641fa3 commit 8c84718
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nuxt/server/api/auth-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export default defineEventHandler(async function (event: H3Event) {
if (Array.isArray(turnstileKey)) {
throwError(422, 'TurnstileKey cannot be an array.')
}
if (turnstileKey === undefined) {
throwError(422, 'TurnstileKey undefined')
}

if (!turnstileKey) {
throwError(422, 'TurnstileKey not provided.')
}
Expand Down

0 comments on commit 8c84718

Please sign in to comment.