Skip to content

Commit

Permalink
fix[iam]: accept eip712 issuer in /passport request (passportxyz#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina authored Feb 15, 2024
1 parent e0bfddf commit b8a5ae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iam/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,9 @@ app.post("/api/v0.0.0/eas/passport", (req: Request, res: Response): void => {
credentials.map(async (credential) => {
return {
credential,
verified: issuer === credential.issuer && (await verifyCredential(DIDKit, credential)),
verified:
(issuer === credential.issuer || eip712Issuer === credential.issuer) &&
(await verifyCredential(DIDKit, credential)),
};
})
)
Expand Down

0 comments on commit b8a5ae7

Please sign in to comment.