Skip to content

Commit

Permalink
feat: Pass jwt for verification
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Mar 17, 2023
1 parent 1635fb0 commit 541e8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/Identity/components/CredentialCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CredentialCard: React.FC<Props> = ({
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
Expand Down

0 comments on commit 541e8c5

Please sign in to comment.