[SOLVED] .NET MAUI Moralis Authentication

Hi! I’ve just started working with .NET and I’m interested in integrating Moralis in my .NET MAUI app. I’ve seen this tutorial where it shows how you can sign in with Metamask in .NET https://docs.moralis.io/docs/net-web3-auth but as far as I can see, the structure from .NET Core app is different from the .NET MAUI. Is it possible to do the same steps considering that instead of a controller, I can use a service class to make the connection?Has anyone done this and can give me some pointers? Any help would be appreciated!

It should be possible - the controllers part is specific to .NET Core, not the Moralis C# SDK. So you can try adapting that tutorial for your .NET MAUI app.

@alex and if instead of using Metamask can I use WalletConnect?

I am not sure - if you follow the tutorial it’s possible you could edit the frontend (index.js/index.html) to include WalletConnect code. I would start first with adapting that tutorial and use MetaMask for .NET MAUI.

1 Like

@alex thank you for the info. I appreciate it! :blush: