Source: StackOverflow thread

Pain

  • In order to verify JWT I need to use public key. I stuck at the moment how to create public key from modulus and exponent that I get from Apple.

 

Keywords

  • Sign In with Apple

  • JWT (JSON Web Token)

  • public key

  • modulus

  • exponent

 

Recommendation

  • To generate public key from the exponent and modulus, they need to be transformed to BigInteger, and then KeyFactory from Java security can be used.

 

Worldview