Open nanaknihal opened 2 years ago
We're going with 1.
It's not much more centralized and it's actually far more secure. We want to validate "aud" claims anyway to make sure tokens didn't come from an insecure site.
On that note, it wouldn't hurt to also check the exp and iss claims. Checks of these and the aud claims are required by the openid specifications
The underlying problem is that if someone's web2 JWT is on another chain, somebody can steal it and then put it on this chain, which will verify it, as it doesn't check the 'aud' claim.
There are a few options.