Remove all @firebase/util imports, replace uuidv4 with crypto.randomUUID

- Create src/utils/uuid.ts utility using crypto.randomUUID()
- Replace all uuidv4 imports from @firebase/util across 11 component files
- Replace base64 import in paypal.ts with Buffer-based implementation

Made-with: Cursor
This commit is contained in:
Talal Sharabi
2026-03-14 17:00:27 +04:00
parent 3c580498d3
commit 65554ed4ce
13 changed files with 15 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
import {TokenError, TokenSuccess} from "@/interfaces/paypal";
import {base64} from "@firebase/util";
const base64 = { encodeString: (s: string) => Buffer.from(s).toString("base64") };
import axios from "axios";
export const getAccessToken = async () => {