diff --git a/src/screens/Identity/Identity.tsx b/src/screens/Identity/Identity.tsx index 7cdb8e5d..a7b923b3 100644 --- a/src/screens/Identity/Identity.tsx +++ b/src/screens/Identity/Identity.tsx @@ -406,7 +406,7 @@ const Identity = (): JSX.Element => { const pres = await createPresentation(subjectDid, creds) setPresentation(pres) const jwt: string = pres.proof.jwt - if (jwt.length > 3500) { + if (jwt.length > 3000) { setPresQR(await postJWT(jwt)) } else { setPresQR(jwt) diff --git a/src/screens/Identity/components/CredentialCard.tsx b/src/screens/Identity/components/CredentialCard.tsx index 366cd885..b930b21c 100644 --- a/src/screens/Identity/components/CredentialCard.tsx +++ b/src/screens/Identity/components/CredentialCard.tsx @@ -34,7 +34,7 @@ const CredentialCard: React.FC = ({ const handleVerifyCredential = async (credential: VerifiableCredential) => { const uri = `${import.meta.env.VITE_ISSUER_ENDPOINT}/api/credentials/verify`; setState({ isVerified: CredentialVerificationState.InProgress }) - axios.post(uri, { credential }).then((resp: { data: { verified: boolean }, status: number }) => { + axios.post(uri, { credential: credential.proof.jwt }).then((resp: { data: { verified: boolean }, status: number }) => { if (resp.data.verified) { setState({ isVerified: CredentialVerificationState.Success }) return