diff --git a/src/invidious/user/captcha.cr b/src/invidious/user/captcha.cr index e4ae3be0..2b873ae2 100644 --- a/src/invidious/user/captcha.cr +++ b/src/invidious/user/captcha.cr @@ -57,7 +57,7 @@ struct Invidious::User return { question: image, - tokens: {generate_response(answer, {":captcha"}, key, use_nonce: true)}, + tokens: {generate_response(answer, {":captcha"}, key, expire: 3.minutes, use_nonce: true)}, } end @@ -66,7 +66,7 @@ struct Invidious::User response = JSON.parse(response) tokens = response["a"].as_a.map do |answer| - generate_response(answer.as_s, {":captcha"}, key, use_nonce: true) + generate_response(answer.as_s, {":captcha"}, key, expire: 3.minutes, use_nonce: true) end return {