Skip to main content

Server Side Verification

Currently Web3Auth supports two types of users :-

  1. Users who login using Social Logins or Email Passwordless.
  2. Users who login using External Wallets.

As a dApp you might want to authenticate a Web3Auth user in your backend. Generally the authentication happens in Frontend, but for the backend authentication we will use a JWT Token(idToken).

Web3Auth provides a mechanism to get a JWT Token for both the social login users as well as the external wallet users.

await web3auth.getUserInfo();

/* OR */

await web3auth.authenticateUser();

In the next pages, we will help you understand how to get the JWT Token in your Frontend and also how to verify it at your Backend server.