@@ -39,10 +39,10 @@ To implement server-side verification with Web3Auth:
3939## Getting the ID Token
4040
4141After a user is logged in using one of the supported Wallets, One can obtain the ` idToken ` by
42- calling the ` authenticateUser ` function of Web3Auth.
42+ calling the ` getIdentityToken ` function of Web3Auth.
4343
4444``` tsx
45- await web3auth .authenticateUser ();
45+ await web3auth .getIdentityToken ();
4646```
4747
4848#### Returns
@@ -205,7 +205,7 @@ By default, Web3Auth returns an `idToken` which contains the `public_key` in the
205205## Social Login Verification
206206
207207In order to verify the JWT Token(` idToken ` ) you'll need the compressed ** app_pub_key** (derived from
208- _ ** app_scoped_privkey** _ ) and the ` idToken ` obtained from the ` authenticateUser ` function in your
208+ _ ** app_scoped_privkey** _ ) and the ` idToken ` obtained from the ` getIdentityToken ` function in your
209209frontend.
210210
211211### Getting ` app_pub_key ` and ` idToken `
@@ -261,7 +261,7 @@ const user = await web3auth.getUserInfo();
261261
262262/*
263263OR
264- const token = await web3auth.authenticateUser ();
264+ const token = await web3auth.getIdentityToken ();
265265 */
266266
267267// Verify idToken at your backend server
@@ -323,7 +323,7 @@ if ((jwtDecoded.payload as any).wallets.find((x: { type: string }) => x.type ===
323323## External Wallet Verification
324324
325325To verify the JWT Token(` idToken` ) you need the wallet ` address` and the ` idToken` obtained from the
326- ` authenticateUser ()` function in your frontend.
326+ ` getIdentityToken ()` function in your frontend.
327327
328328### Getting ` address` and ` idToken`
329329
@@ -338,7 +338,7 @@ const address = await solanaWallet.requestAccounts();
338338// For other chains, please refer to https://web3auth.io/docs/connect-blockchain/
339339
340340/* Assuming user is logged in, get the token containtaing idToken */
341- const token = await web3auth .authenticateUser ();
341+ const token = await web3auth .getIdentityToken ();
342342
343343// Verify idToken at your backend server
344344const res = await fetch (" /api/verify" , {
0 commit comments