check callback from lichess server

This commit is contained in:
2026-06-07 22:44:31 +02:00
parent 585bb5549f
commit 0888df153f
9 changed files with 154 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
import { createHash } from "node:crypto";
export const base64UrlEncode = (str: Buffer) => {
return str
.toString("base64")
.replace(/\+/g, "-")
.replace(/\//g, "_")
.replace(/=/g, "");
};
export const sha256 = (buffer: string) =>
createHash("sha256").update(buffer).digest();