Skip to content

Commit

Permalink
secretKeyの読み込みを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nose221834 committed Apr 7, 2024
1 parent a5def4b commit fe7dc7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/src/lib/verifyToken.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"use server";

import type { TurnstileServerValidationResponse } from "@marsidev/react-turnstile";
import readEnv from "./readEnv";

const verifyEndpoint = "https://challenges.cloudflare.com/turnstile/v0/siteverify";
// envから読み込むように修正
const secret = "1x0000000000000000000000000000000AA";
const secret = readEnv().secretKey;

export default async function verifyToken(token: string) {
// tokenを検証
Expand Down

0 comments on commit fe7dc7e

Please sign in to comment.