Best way to hook custom authentication SDK into Wappler?

I want to use Web3Auth SDK because it handles social, email, and web3 crypto wallets for login – in addition to allowing you to link multiple accounts (e.g. multiple crypto wallets) to the same user.

It was fairly easy to mock up the login/logout process using JS and a few buttons and I can see the returned data in console, but I’m not sure how to hook the data up into Wappler Server Actions so I can query/insert it into the User table.

Does anyone have experience doing something similar?
Maybe this is a good candidate for a custom module?

Docs here: https://docs.web3auth.io/guides/web3auth-getting-started

Screenshot
:thinking:

Couldn’t find any documentation for that though… Maybe you have better luck and then use Wappler’s OAuth stuff

OAuth is only one part of it though and I still believe handled through the SDK. The more important part for me is web3 and crypto wallets. Having the Social web2 logins is just an added benefit.

I’m trying to understand the existing OAuth module built by Wappler to see if I can create a similar custom module for Web3Auth with inputs and outputs.