Hi,
There is a new API now if you update the the latest moralis sdk (0.0.36)
https://docs.moralis.io/moralis-server/web3-sdk/account#getnfts
the new code would be (pasted from the documentation):
// get NFTs for current user on Mainnet
const userEthNFTs = await Moralis.Web3API.account.getNFTs();
// get testnet NFTs for user
const testnetNFTs = await Moralis.Web3API.account.getNFTs({ chain: 'ropsten' });
// get polygon NFTs for address
const options = { chain: 'matic', address: '0x...' };
const polygonNFTs = await Moralis.Web3API.account.getNFTs(options);
In order to get current metamask connected address you can use ethereum.selectedAddress
You’ll also have to update moralis server to latest version (now 0.0.250) for some functions to work properly.