No Data when using useGenerateUserToken inside the Shop app environment on iOS Simulator

Hi admin,
We’re having an issue with useGenerateUserToken inside the Shop app environment on iOS Simulator — the hook returns no token (undefined) and no error.

Our setup:

  • Mini is launched inside the Shop app

  • User is logged in

  • Hook is called after the environment is initialized

  • Token is needed so we can send it to our backend and verify with userTokenVerify

Could you confirm

  1. Whether useGenerateUserToken requires any specific manifest permissions / capabilities, and

  2. Whether the hook is expected to work on iOS simulator, or only on physical devices?

This is blocking our auth flow, so any guidance would be appreciated. Thank you!

Hi @phuongpq1 ! useGenerateUserToken does indeed require a manifest scope, please check the hook documentation here