We are currently using these codes to verify a user and get wallet address:
const query = new Moralis.Query(Moralis.Session)
query.include([
'sessionToken',
'user.accounts',
])
query.equalTo('sessionToken', token)
const results = await query.find({ useMasterKey: true })
let address = results[0]?.get('user')?.get('accounts')?.[0] as string | undefined
But the address
is undefined
if the user is signed in with Phantom. Is the Solana support still in very early development and not supported at all on backend, or I should use other codes to finish this process with Phantom users?