import { PropsWithChildren } from "react"; import { CacheLocation, FpjsProvider, LoadOptions, } from "@fingerprintjs/fingerprintjs-pro-react"; const fpjsPublicApiKey = process.env.NEXT_PUBLIC_FPJS_PUBLIC_API_KEY as string; export const SessionStorageCache: React.FC = ({ children, }) => { const loadOptions: LoadOptions = { apiKey: fpjsPublicApiKey, }; return (

Solution with a custom implementation of a session storage cache

New API call made after a key expires or is cleared from the local storage
{children}
); };