I’m trying to implement the login in a Swift app.
I’m following the WebSingIn example from GitHub - okta/okta-mobile-swift: okta-mobile-swift
I can login just fine, I can get the Token with all the data, so the login seems to work fine.
But when I try to get a particular field from the JWT payload ( for example the email), the string or it’s not there or it doesn’t make any sense.
Is this because the payload is encrypted?
I’ve tried using the https://jwt.io/ to see what’s in the JWT payload, but the only fields that make sense are:
- Fields related with dates/times, for example keys in the payload with: iat, exp or auth_time
- And the issuer field with the key: iss
The other ones don’t make much sense the values, so my only guess is they are encrypted…?