Std.App.Jwt.PublicKey
type
PublicKeyThis declaration introduces a public type.
What it does
A public key an identity provider publishes, and the algorithm it signs with.
A provider publishes its keys as numbers rather than as a file: a JWKS
carries an RSA key as a modulus and an exponent, and a curve key as the two
coordinates of a point, each base64url. So that is what this takes.
A key is named by `kid` because a provider holds several and rotates them;
a token says in its header which one signed it, and checking the wrong one
fails in a way that looks exactly like a forgery.
Read the signature
- This declaration has no value signature because it introduces a type or trait.
