Web3Auth SFA Web SDK Error in package

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:

Hey @service3, can you please share the package version you are using?

Hi @Ayush

It’s working now, there’s just additional steps that we need to setup which we need to follow

this has been tagged as fixed.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.