Lucra Flows Setup and Usage

Open Lucra

const lucraClient = new LucraClient(...)
lucraClient.open(element: <HTMLElement that will contain the iframe for Lucra>, phoneNumber?: string)
  // and one of the below
  .profile()
  .home(locationId?: string)
  .deposit()
  .withdraw()
  .createMatchup(gameId?: string)
  .matchupDetails(matchupId: string)
  .tournamentDetails(matchupId: string)
  .deepLink(url: string)

Where phone number (if valid) will automatically send the SMS verification code, skipping the step where the user must enter phone number manually.

Redirect Lucra

// use an existing LucraClient that's open
lucraClient.redirect()
  // and one of the below
  .profile()
  .home(locationId?: string)
  .deposit()
  .withdraw()
  .createMatchup(gameId?: string)
  .matchupDetails(matchupId: string)
  .tournamentDetails(matchupId: string)
  .deepLink(url: string)

Last updated