i am using web3 auth plug n play in frontend after the login i am getting a token which i want to decrypt in node js backend
Hey, you can use our utils package to do decode JWT token.
import { safeatob } from "@toruslabs/openlogin-utils";
const payload = token.split(".")[1];
const decodedJWT = JSON.parse(safeatob(payload));
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.