Authenticate users accessing your digital product passport applications using decentralized identifiers and verifiable credentials. This Node.js Passport strategy authenticates based on roles defined in the Energy Web Foundation Ethereum namespace, ensuring only authorized parties can access product passport data. Works with SSI-HUB to validate DIDs and verifies credentials that may have been issued through Switchboard. Verify role credentials issued by authorized issuers, check revocation status, and validate expiration dates automatically. Support both EIP191 JWT tokens and Sign-In with Ethereum (SIWE) for flexible authentication options. All authentication tokens are cryptographically signed and encrypted. Integrate seamlessly with existing Passport.js middleware to add decentralized identity authentication to your product passport services without rebuilding your authentication infrastructure.
