Skip to content

Documentation / @frak-labs/core-sdk / index / FrakContextManager

Variable: FrakContextManager

const FrakContextManager: { compress: (context?) => string | undefined; decompress: (context?) => FrakContext | undefined; parse: (args) => FrakContext | null | undefined; remove: (url) => string; replaceUrl: (args) => void; update: (args) => string | null; }

Defined in: utils/FrakContext.ts:173

Manager for Frak referral context in URLs.

Handles compression, decompression, URL parsing, and browser history updates for both V1 (wallet address) and V2 (anonymous clientId) referral contexts.

Type Declaration

compress

(context?) => string | undefined

decompress

(context?) => FrakContext | undefined

parse

(args) => FrakContext | null | undefined

remove

(url) => string

replaceUrl

(args) => void

update

(args) => string | null