AppAuth-iOS
AppAuth-iOS copied to clipboard
IssuedAt expected datatype mismatch
I am getting error message ID Token parsing failed. Up on investigate, OIDCToken._issuedAt is nil.
There is an issue with OIDCFieldMapping. ExpectedType is NSDate but actual datatype is NSMutableString
Environment
- Device: [ iPhone 13 Simulator ]
- OS: [ iOS 15.5 ]
- Browser: [ Safari ]
- XCode: [ 13.4.1]
- Mac: [12.4, M1 Pro - ARM]
Further investigation Some of the claims in JWT are strings and some are numbers.
Note: I removed other claims except claims that contain timestamp.
{ "nbf": 1656649887, "exp": 1656650187, "iat": "1656649887", "auth_time": "1656641395" }
Is it problem with Identity Provider or is it problem with this library to handle this scenario as well?
Issue with serialisation.