Initialize SDK


interface Configuration {
  serviceIdentifier: string;
  displayMode: AgeGateDisplayMode;

type AgeGateDisplayMode = "popup" | "redirect";

The method initiates AgeVerification SDK.

Age Verification init entry parameters:

serviceIdentifier - service identifier
displayMode - widget display mode configurations: "popup","redirect"

Display mode defines the way of how the widget will be open when the method is called. Redirect mode implies sending users to a different URL from the one they originally requested. Popup mode implies displaying via a popup browser window that is displayed on top of the existing windows on the screen.

JS (Typescript) Age Gate SDK location:

Development Environment:
Development Environment (Typescript types):
Production Environment:
Production Environment (Typescript types):