I was trying to experiment on the SFA Web package to see how it works but I am getting an error whenever I use the functions like decodeToken
please see additional details below:
imported package
import Web3Auth, { decodeToken } from '@web3auth/single-factor-auth';
Line of code
`const onSuccess = async (response: CredentialResponse) => {
try {
const idToken = response.credential;
const { payload } = decodeToken(idToken!); //getting an error here
} catch (err) {
}
};
`
error: