App-management package not returning data as expected

Question:
I am trying to get app instance information using @wix/app-management.

Product:
Velo/ Block editor

What are you trying to achieve:
I am trying to Detect a user’s free trial activity, as explained.

I need to check if user is on trial or not using the below code

`1import { appInstances } from “@wix/app-management”;2
3async function getAppInstance() {4 const response = await appInstances.getAppInstance();5}

// response.instance is always undefined
`

What have you already tried:

I tried to get data as explained in the document but instead of instance details I can see some function being returned when I console log.

I am trying to invoke it inside my Wix Widget block and also tried in backend module code.

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]