# \[Archive\] Custom JWT Auth Login Error

**URL:** <https://builder.metamask.io/t/archive-custom-jwt-auth-login-error/2357>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [October 25, 2022, 1:12pm UTC](https://builder.metamask.io/t/archive-custom-jwt-auth-login-error/2357 "2022-10-25T13:12:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [October 25, 2022, 1:12pm UTC](https://builder.metamask.io/t/archive-custom-jwt-auth-login-error/2357/1 "2022-10-25T13:12:33Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **githubdiscussions** on 10/25/2022.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

Hey guys, i'm trying to implement the custom auth using JWT token. I've successfully deployed the verified in the dashboard but i get some weird errors. Here is a snippet of my code. Any clues on whats going wrong ?

`

http://localhost:8080",  
verifierIdField: "sub",  
response\_type: "token",  
scope:"",  
}  
});"\>

```
const web3authCore = new Web3AuthCore({
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: “0x38”,
rpcTarget: “https://bsc-dataseed1.binance.org”,
blockExplorer: “https://bscscan.com/”,
ticker: “BNB”,
tickerName: “Binance Smart Chain”,
},
clientId: “”
});
const adapter = new OpenloginAdapter({ adapterSettings: {
network: “testnet”,
clientId: “”,
uxMode: “popup”,
loginConfig: {
jwt: {
name: “any name”,
verifier: “wam-testnet”,
typeOfLogin: “jwt”,
clientId: “”,
},
},
}});
web3authCore.configureAdapter(adapter);
await web3authCore.init();

```

`  
[![Screenshot 2022-10-25 at 15 55 09](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/f/fecb7572132baa6aef24cc8db0175e66718a9756.png)](https://user-images.githubusercontent.com/35598195/197781867-03df7e0e-09df-42ad-afc2-1649c095815d.png)  
[![Screenshot 2022-10-25 at 16 35 28](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/9/9509140aa4a28910227ed7e6f35b91c65b4bc7d6.png)](https://user-images.githubusercontent.com/35598195/197792962-e75eaa1c-02c7-4be3-a5bd-b5966bfd1aab.png)

  
   
 Originally posted by: [0xboga](https://github.com/0xboga)  
   
 Check the discussion at: [https://github.com/orgs/Web3Auth/discussions/771](https://github.com/orgs/Web3Auth/discussions/771)
