sso: polyfill buffer for browser

This commit is contained in:
Arunavo Ray
2025-10-22 18:13:36 +05:30
parent dc340666ef
commit 79e0086a72
4 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
import { Buffer } from "buffer";
if (typeof globalThis !== "undefined" && (globalThis as any).Buffer === undefined) {
(globalThis as any).Buffer = Buffer;
}