Skip to content

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

Function: isV2Context()

isV2Context(ctx): ctx is FrakContextV2

Defined in: types/context.ts:53

Type guard: check if a context is V2 (anonymous clientId-based).

Parameters

ctx

FrakContext

The Frak context to check

Returns

ctx is FrakContextV2

True if the context is a V2 context