Auth0 Home Blog Docs

Verify ECDSA signature in iOS



I am trying to read a JWT response after successful login. I receive the correct header and payload and can read the contents perfectly fine.

The problem is I can’t figure out a way to verify the signature in iOS. I have the encoded signature from JWT response, the used algorithm (es256) and a public key.

Can someone point me in the right direction here.

PS. I am a beginner to the whole JWT ECDSA setup so bear with me if this is a commonly asked question.