import { Visitor } from "https://deno.land/x/flagship_io_js_sdk@4.0.4/index.ts";
The Visitor
class represents a unique user within your application. It aids in
managing the visitor's data and fetching the corresponding flags for the visitor
from the Flagship platform .
Properties
readonly
config: IFlagshipConfigreadonly
context: Record<string, primitive>Methods
authenticate(visitorId: string): void
clearContext(): void
fetchFlags(): Promise<void>
sendHit(hit: HitAbstract): Promise<void>
sendHits(hits: HitAbstract[]): Promise<void>
setConsent(hasConsented: boolean): void
unauthenticate(): void
updateContext(key: string, value: primitive): void
updateContext(context: Record<string, primitive>): void