To use the Recovery API, install the @wix/identity package using npm or Yarn:
@wix/identity
npm install @wix/identity
or
yarn add @wix/identity
Then import { recovery } from @wix/identity:
{ recovery }
import { recovery } from "@wix/identity";